2 # Copyright (C) 2019 EfficiOS Inc.
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; only version 2
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 class PackageTestCase(unittest
.TestCase
):
24 def _assert_in_bt2(self
, name
):
25 self
.assertIn(name
, dir(bt2
))
27 def test_has_ClockClassOffset(self
):
28 self
._assert
_in
_bt
2('ClockClassOffset')
30 def test_has__ClockSnapshotConst(self
):
31 self
._assert
_in
_bt
2('_ClockSnapshotConst')
33 def test_has__UnknownClockSnapshot(self
):
34 self
._assert
_in
_bt
2('_UnknownClockSnapshot')
36 def test_has__SourceComponentClassConst(self
):
37 self
._assert
_in
_bt
2('_SourceComponentClassConst')
39 def test_has__FilterComponentClassConst(self
):
40 self
._assert
_in
_bt
2('_FilterComponentClassConst')
42 def test_has__SinkComponentClassConst(self
):
43 self
._assert
_in
_bt
2('_SinkComponentClassConst')
45 def test_has__SourceComponentConst(self
):
46 self
._assert
_in
_bt
2('_SourceComponentConst')
48 def test_has__FilterComponentConst(self
):
49 self
._assert
_in
_bt
2('_FilterComponentConst')
51 def test_has__SinkComponentConst(self
):
52 self
._assert
_in
_bt
2('_SinkComponentConst')
54 def test_has__UserSourceComponent(self
):
55 self
._assert
_in
_bt
2('_UserSourceComponent')
57 def test_has__UserFilterComponent(self
):
58 self
._assert
_in
_bt
2('_UserFilterComponent')
60 def test_has__UserSinkComponent(self
):
61 self
._assert
_in
_bt
2('_UserSinkComponent')
63 def test_has_ComponentClassType(self
):
64 self
._assert
_in
_bt
2('ComponentClassType')
66 def test_has__ErrorCause(self
):
67 self
._assert
_in
_bt
2('_ErrorCause')
69 def test_has__ComponentErrorCause(self
):
70 self
._assert
_in
_bt
2('_ComponentErrorCause')
72 def test_has__ComponentClassErrorCause(self
):
73 self
._assert
_in
_bt
2('_ComponentClassErrorCause')
75 def test_has__MessageIteratorErrorCause(self
):
76 self
._assert
_in
_bt
2('_MessageIteratorErrorCause')
78 def test_has__Error(self
):
79 self
._assert
_in
_bt
2('_Error')
81 def test_has_EventClassLogLevel(self
):
82 self
._assert
_in
_bt
2('EventClassLogLevel')
84 def test_has__BoolField(self
):
85 self
._assert
_in
_bt
2('_BoolField')
87 def test_has__BitArrayField(self
):
88 self
._assert
_in
_bt
2('_BitArrayField')
90 def test_has__IntegerField(self
):
91 self
._assert
_in
_bt
2('_IntegerField')
93 def test_has__UnsignedIntegerField(self
):
94 self
._assert
_in
_bt
2('_UnsignedIntegerField')
96 def test_has__SignedIntegerField(self
):
97 self
._assert
_in
_bt
2('_SignedIntegerField')
99 def test_has__RealField(self
):
100 self
._assert
_in
_bt
2('_RealField')
102 def test_has__SinglePrecisionRealField(self
):
103 self
._assert
_in
_bt
2('_SinglePrecisionRealField')
105 def test_has__DoublePrecisionRealField(self
):
106 self
._assert
_in
_bt
2('_DoublePrecisionRealField')
108 def test_has__EnumerationField(self
):
109 self
._assert
_in
_bt
2('_EnumerationField')
111 def test_has__UnsignedEnumerationField(self
):
112 self
._assert
_in
_bt
2('_UnsignedEnumerationField')
114 def test_has__SignedEnumerationField(self
):
115 self
._assert
_in
_bt
2('_SignedEnumerationField')
117 def test_has__StringField(self
):
118 self
._assert
_in
_bt
2('_StringField')
120 def test_has__StructureField(self
):
121 self
._assert
_in
_bt
2('_StructureField')
123 def test_has__OptionField(self
):
124 self
._assert
_in
_bt
2('_VariantField')
126 def test_has__VariantField(self
):
127 self
._assert
_in
_bt
2('_VariantField')
129 def test_has__ArrayField(self
):
130 self
._assert
_in
_bt
2('_ArrayField')
132 def test_has__StaticArrayField(self
):
133 self
._assert
_in
_bt
2('_StaticArrayField')
135 def test_has__DynamicArrayField(self
):
136 self
._assert
_in
_bt
2('_DynamicArrayField')
138 def test_has__BoolFieldConst(self
):
139 self
._assert
_in
_bt
2('_BoolFieldConst')
141 def test_has__BitArrayFieldConst(self
):
142 self
._assert
_in
_bt
2('_BitArrayFieldConst')
144 def test_has__IntegerFieldConst(self
):
145 self
._assert
_in
_bt
2('_IntegerFieldConst')
147 def test_has__UnsignedIntegerFieldConst(self
):
148 self
._assert
_in
_bt
2('_UnsignedIntegerFieldConst')
150 def test_has__SignedIntegerFieldConst(self
):
151 self
._assert
_in
_bt
2('_SignedIntegerFieldConst')
153 def test_has__RealFieldConst(self
):
154 self
._assert
_in
_bt
2('_RealFieldConst')
156 def test_has__SinglePrecisionRealFieldConst(self
):
157 self
._assert
_in
_bt
2('_SinglePrecisionRealFieldConst')
159 def test_has__DoublePrecisionRealFieldConst(self
):
160 self
._assert
_in
_bt
2('_DoublePrecisionRealFieldConst')
162 def test_has__EnumerationFieldConst(self
):
163 self
._assert
_in
_bt
2('_EnumerationFieldConst')
165 def test_has__UnsignedEnumerationFieldConst(self
):
166 self
._assert
_in
_bt
2('_UnsignedEnumerationFieldConst')
168 def test_has__SignedEnumerationFieldConst(self
):
169 self
._assert
_in
_bt
2('_SignedEnumerationFieldConst')
171 def test_has__StringFieldConst(self
):
172 self
._assert
_in
_bt
2('_StringFieldConst')
174 def test_has__StructureFieldConst(self
):
175 self
._assert
_in
_bt
2('_StructureFieldConst')
177 def test_has__OptionFieldConst(self
):
178 self
._assert
_in
_bt
2('_VariantFieldConst')
180 def test_has__VariantFieldConst(self
):
181 self
._assert
_in
_bt
2('_VariantFieldConst')
183 def test_has__ArrayFieldConst(self
):
184 self
._assert
_in
_bt
2('_ArrayFieldConst')
186 def test_has__StaticArrayFieldConst(self
):
187 self
._assert
_in
_bt
2('_StaticArrayFieldConst')
189 def test_has__DynamicArrayFieldConst(self
):
190 self
._assert
_in
_bt
2('_DynamicArrayFieldConst')
192 def test_has_IntegerDisplayBase(self
):
193 self
._assert
_in
_bt
2('IntegerDisplayBase')
195 def test_has__BoolFieldClass(self
):
196 self
._assert
_in
_bt
2('_BoolFieldClass')
198 def test_has__BitArrayFieldClass(self
):
199 self
._assert
_in
_bt
2('_BitArrayFieldClass')
201 def test_has__IntegerFieldClass(self
):
202 self
._assert
_in
_bt
2('_IntegerFieldClass')
204 def test_has__UnsignedIntegerFieldClass(self
):
205 self
._assert
_in
_bt
2('_UnsignedIntegerFieldClass')
207 def test_has__SignedIntegerFieldClass(self
):
208 self
._assert
_in
_bt
2('_SignedIntegerFieldClass')
210 def test_has__RealFieldClass(self
):
211 self
._assert
_in
_bt
2('_RealFieldClass')
213 def test_has__EnumerationFieldClass(self
):
214 self
._assert
_in
_bt
2('_EnumerationFieldClass')
216 def test_has__UnsignedEnumerationFieldClass(self
):
217 self
._assert
_in
_bt
2('_UnsignedEnumerationFieldClass')
219 def test_has__SignedEnumerationFieldClass(self
):
220 self
._assert
_in
_bt
2('_SignedEnumerationFieldClass')
222 def test_has__StringFieldClass(self
):
223 self
._assert
_in
_bt
2('_StringFieldClass')
225 def test_has__StructureFieldClass(self
):
226 self
._assert
_in
_bt
2('_StructureFieldClass')
228 def test_has__OptionFieldClass(self
):
229 self
._assert
_in
_bt
2('_OptionFieldClass')
231 def test_has__OptionWithSelectorFieldClass(self
):
232 self
._assert
_in
_bt
2('_OptionWithSelectorFieldClass')
234 def test_has__OptionWithBoolSelectorFieldClass(self
):
235 self
._assert
_in
_bt
2('_OptionWithBoolSelectorFieldClass')
237 def test_has__OptionWithIntegerSelectorFieldClass(self
):
238 self
._assert
_in
_bt
2('_OptionWithIntegerSelectorFieldClass')
240 def test_has__OptionWithUnsignedIntegerSelectorFieldClass(self
):
241 self
._assert
_in
_bt
2('_OptionWithUnsignedIntegerSelectorFieldClass')
243 def test_has__OptionWithSignedIntegerSelectorFieldClass(self
):
244 self
._assert
_in
_bt
2('_OptionWithSignedIntegerSelectorFieldClass')
246 def test_has__VariantFieldClass(self
):
247 self
._assert
_in
_bt
2('_VariantFieldClass')
249 def test_has__VariantFieldClassWithoutSelector(self
):
250 self
._assert
_in
_bt
2('_VariantFieldClassWithoutSelector')
252 def test_has__VariantFieldClassWithSelector(self
):
253 self
._assert
_in
_bt
2('_VariantFieldClassWithSelector')
255 def test_has__VariantFieldClassWithUnsignedSelector(self
):
256 self
._assert
_in
_bt
2('_VariantFieldClassWithUnsignedSelector')
258 def test_has__VariantFieldClassWithSignedSelector(self
):
259 self
._assert
_in
_bt
2('_VariantFieldClassWithSignedSelector')
261 def test_has__ArrayFieldClass(self
):
262 self
._assert
_in
_bt
2('_ArrayFieldClass')
264 def test_has__StaticArrayFieldClass(self
):
265 self
._assert
_in
_bt
2('_StaticArrayFieldClass')
267 def test_has__DynamicArrayFieldClass(self
):
268 self
._assert
_in
_bt
2('_DynamicArrayFieldClass')
270 def test_has__BoolFieldClassConst(self
):
271 self
._assert
_in
_bt
2('_BoolFieldClassConst')
273 def test_has__BitArrayFieldClassConst(self
):
274 self
._assert
_in
_bt
2('_BitArrayFieldClassConst')
276 def test_has__IntegerFieldClassConst(self
):
277 self
._assert
_in
_bt
2('_IntegerFieldClassConst')
279 def test_has__UnsignedIntegerFieldClassConst(self
):
280 self
._assert
_in
_bt
2('_UnsignedIntegerFieldClassConst')
282 def test_has__SignedIntegerFieldClassConst(self
):
283 self
._assert
_in
_bt
2('_SignedIntegerFieldClassConst')
285 def test_has__RealFieldClassConst(self
):
286 self
._assert
_in
_bt
2('_RealFieldClassConst')
288 def test_has__EnumerationFieldClassConst(self
):
289 self
._assert
_in
_bt
2('_EnumerationFieldClassConst')
291 def test_has__UnsignedEnumerationFieldClassConst(self
):
292 self
._assert
_in
_bt
2('_UnsignedEnumerationFieldClassConst')
294 def test_has__SignedEnumerationFieldClassConst(self
):
295 self
._assert
_in
_bt
2('_SignedEnumerationFieldClassConst')
297 def test_has__StringFieldClassConst(self
):
298 self
._assert
_in
_bt
2('_StringFieldClassConst')
300 def test_has__StructureFieldClassConst(self
):
301 self
._assert
_in
_bt
2('_StructureFieldClassConst')
303 def test_has__OptionFieldClassConst(self
):
304 self
._assert
_in
_bt
2('_OptionFieldClassConst')
306 def test_has__OptionWithSelectorFieldClassConst(self
):
307 self
._assert
_in
_bt
2('_OptionWithSelectorFieldClassConst')
309 def test_has__OptionWithBoolSelectorFieldClassConst(self
):
310 self
._assert
_in
_bt
2('_OptionWithBoolSelectorFieldClassConst')
312 def test_has__OptionWithIntegerSelectorFieldClassConst(self
):
313 self
._assert
_in
_bt
2('_OptionWithIntegerSelectorFieldClassConst')
315 def test_has__OptionWithUnsignedIntegerSelectorFieldClassConst(self
):
316 self
._assert
_in
_bt
2('_OptionWithUnsignedIntegerSelectorFieldClassConst')
318 def test_has__OptionWithSignedIntegerSelectorFieldClassConst(self
):
319 self
._assert
_in
_bt
2('_OptionWithSignedIntegerSelectorFieldClassConst')
321 def test_has__VariantFieldClassConst(self
):
322 self
._assert
_in
_bt
2('_VariantFieldClassConst')
324 def test_has__VariantFieldClassWithoutSelectorConst(self
):
325 self
._assert
_in
_bt
2('_VariantFieldClassWithoutSelectorConst')
327 def test_has__VariantFieldClassWithSelectorConst(self
):
328 self
._assert
_in
_bt
2('_VariantFieldClassWithSelectorConst')
330 def test_has__VariantFieldClassWithUnsignedSelectorConst(self
):
331 self
._assert
_in
_bt
2('_VariantFieldClassWithUnsignedSelectorConst')
333 def test_has__VariantFieldClassWithSignedSelectorConst(self
):
334 self
._assert
_in
_bt
2('_VariantFieldClassWithSignedSelectorConst')
336 def test_has__ArrayFieldClassConst(self
):
337 self
._assert
_in
_bt
2('_ArrayFieldClassConst')
339 def test_has__StaticArrayFieldClassConst(self
):
340 self
._assert
_in
_bt
2('_StaticArrayFieldClassConst')
342 def test_has__DynamicArrayFieldClassConst(self
):
343 self
._assert
_in
_bt
2('_DynamicArrayFieldClassConst')
345 def test_has_FieldPathScope(self
):
346 self
._assert
_in
_bt
2('FieldPathScope')
348 def test_has__IndexFieldPathItem(self
):
349 self
._assert
_in
_bt
2('_IndexFieldPathItem')
351 def test_has__CurrentArrayElementFieldPathItem(self
):
352 self
._assert
_in
_bt
2('_CurrentArrayElementFieldPathItem')
354 def test_has__CurrentOptionContentFieldPathItem(self
):
355 self
._assert
_in
_bt
2('_CurrentOptionContentFieldPathItem')
357 def test_has_ComponentDescriptor(self
):
358 self
._assert
_in
_bt
2('ComponentDescriptor')
360 def test_has_Graph(self
):
361 self
._assert
_in
_bt
2('Graph')
363 def test_has_SignedIntegerRange(self
):
364 self
._assert
_in
_bt
2('SignedIntegerRange')
366 def test_has_UnsignedIntegerRange(self
):
367 self
._assert
_in
_bt
2('UnsignedIntegerRange')
369 def test_has_SignedIntegerRangeSet(self
):
370 self
._assert
_in
_bt
2('SignedIntegerRangeSet')
372 def test_has_UnsignedIntegerRangeSet(self
):
373 self
._assert
_in
_bt
2('UnsignedIntegerRangeSet')
375 def test_has__SignedIntegerRangeConst(self
):
376 self
._assert
_in
_bt
2('_SignedIntegerRangeConst')
378 def test_has__UnsignedIntegerRangeConst(self
):
379 self
._assert
_in
_bt
2('_UnsignedIntegerRangeConst')
381 def test_has__SignedIntegerRangeSetConst(self
):
382 self
._assert
_in
_bt
2('_SignedIntegerRangeSetConst')
384 def test_has__UnsignedIntegerRangeSetConst(self
):
385 self
._assert
_in
_bt
2('_UnsignedIntegerRangeSetConst')
387 def test_has_Interrupter(self
):
388 self
._assert
_in
_bt
2('Interrupter')
390 def test_has_LoggingLevel(self
):
391 self
._assert
_in
_bt
2('LoggingLevel')
393 def test_has_get_minimal_logging_level(self
):
394 self
._assert
_in
_bt
2('get_minimal_logging_level')
396 def test_has_get_global_logging_level(self
):
397 self
._assert
_in
_bt
2('get_global_logging_level')
399 def test_has_set_global_logging_level(self
):
400 self
._assert
_in
_bt
2('set_global_logging_level')
402 def test_has__EventMessage(self
):
403 self
._assert
_in
_bt
2('_EventMessage')
405 def test_has__PacketBeginningMessage(self
):
406 self
._assert
_in
_bt
2('_PacketBeginningMessage')
408 def test_has__PacketEndMessage(self
):
409 self
._assert
_in
_bt
2('_PacketEndMessage')
411 def test_has__StreamBeginningMessage(self
):
412 self
._assert
_in
_bt
2('_StreamBeginningMessage')
414 def test_has__StreamEndMessage(self
):
415 self
._assert
_in
_bt
2('_StreamEndMessage')
417 def test_has__MessageIteratorInactivityMessage(self
):
418 self
._assert
_in
_bt
2('_MessageIteratorInactivityMessage')
420 def test_has__DiscardedEventsMessage(self
):
421 self
._assert
_in
_bt
2('_DiscardedEventsMessage')
423 def test_has__DiscardedPacketsMessage(self
):
424 self
._assert
_in
_bt
2('_DiscardedPacketsMessage')
426 def test_has__EventMessageConst(self
):
427 self
._assert
_in
_bt
2('_EventMessageConst')
429 def test_has__PacketBeginningMessageConst(self
):
430 self
._assert
_in
_bt
2('_PacketBeginningMessageConst')
432 def test_has__PacketEndMessageConst(self
):
433 self
._assert
_in
_bt
2('_PacketEndMessageConst')
435 def test_has__StreamBeginningMessageConst(self
):
436 self
._assert
_in
_bt
2('_StreamBeginningMessageConst')
438 def test_has__StreamEndMessageConst(self
):
439 self
._assert
_in
_bt
2('_StreamEndMessageConst')
441 def test_has__MessageIteratorInactivityMessageConst(self
):
442 self
._assert
_in
_bt
2('_MessageIteratorInactivityMessageConst')
444 def test_has__DiscardedEventsMessageConst(self
):
445 self
._assert
_in
_bt
2('_DiscardedEventsMessageConst')
447 def test_has__DiscardedPacketsMessageConst(self
):
448 self
._assert
_in
_bt
2('_DiscardedPacketsMessageConst')
450 def test_has__UserMessageIterator(self
):
451 self
._assert
_in
_bt
2('_UserMessageIterator')
453 def test_has_find_plugins_in_path(self
):
454 self
._assert
_in
_bt
2('find_plugins_in_path')
456 def test_has_find_plugins(self
):
457 self
._assert
_in
_bt
2('find_plugins')
459 def test_has_find_plugin(self
):
460 self
._assert
_in
_bt
2('find_plugin')
462 def test_has_plugin_component_class(self
):
463 self
._assert
_in
_bt
2('plugin_component_class')
465 def test_has_register_plugin(self
):
466 self
._assert
_in
_bt
2('register_plugin')
468 def test_has_QueryExecutor(self
):
469 self
._assert
_in
_bt
2('QueryExecutor')
471 def test_has_AutoSourceComponentSpec(self
):
472 self
._assert
_in
_bt
2('AutoSourceComponentSpec')
474 def test_has_ComponentSpec(self
):
475 self
._assert
_in
_bt
2('ComponentSpec')
477 def test_has_TraceCollectionMessageIterator(self
):
478 self
._assert
_in
_bt
2('TraceCollectionMessageIterator')
480 def test_has_create_value(self
):
481 self
._assert
_in
_bt
2('create_value')
483 def test_has_BoolValue(self
):
484 self
._assert
_in
_bt
2('BoolValue')
486 def test_has__IntegerValue(self
):
487 self
._assert
_in
_bt
2('_IntegerValue')
489 def test_has_UnsignedIntegerValue(self
):
490 self
._assert
_in
_bt
2('UnsignedIntegerValue')
492 def test_has_SignedIntegerValue(self
):
493 self
._assert
_in
_bt
2('SignedIntegerValue')
495 def test_has_RealValue(self
):
496 self
._assert
_in
_bt
2('RealValue')
498 def test_has_StringValue(self
):
499 self
._assert
_in
_bt
2('StringValue')
501 def test_has_ArrayValue(self
):
502 self
._assert
_in
_bt
2('ArrayValue')
504 def test_has_MapValue(self
):
505 self
._assert
_in
_bt
2('MapValue')
507 def test_has_BoolValueConst(self
):
508 self
._assert
_in
_bt
2('_BoolValueConst')
510 def test_has__IntegerValueConst(self
):
511 self
._assert
_in
_bt
2('_IntegerValueConst')
513 def test_has_UnsignedIntegerValueConst(self
):
514 self
._assert
_in
_bt
2('_UnsignedIntegerValueConst')
516 def test_has_SignedIntegerValueConst(self
):
517 self
._assert
_in
_bt
2('_SignedIntegerValueConst')
519 def test_has_RealValueConst(self
):
520 self
._assert
_in
_bt
2('_RealValueConst')
522 def test_has_StringValueConst(self
):
523 self
._assert
_in
_bt
2('_StringValueConst')
525 def test_has_ArrayValueConst(self
):
526 self
._assert
_in
_bt
2('_ArrayValueConst')
528 def test_has_MapValueConst(self
):
529 self
._assert
_in
_bt
2('_MapValueConst')
531 def test_has___version__(self
):
532 self
._assert
_in
_bt
2('__version__')
535 if __name__
== '__main__':
This page took 0.042279 seconds and 4 git commands to generate.