lib: add option field classes with integer selectors
[babeltrace.git] / tests / bindings / python / bt2 / test_package.py
1 #
2 # Copyright (C) 2019 EfficiOS Inc.
3 #
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
7 # of the License.
8 #
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.
13 #
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.
17 #
18
19 import bt2
20 import unittest
21
22
23 class PackageTestCase(unittest.TestCase):
24 def _assert_in_bt2(self, name):
25 self.assertIn(name, dir(bt2))
26
27 def test_has_ClockClassOffset(self):
28 self._assert_in_bt2('ClockClassOffset')
29
30 def test_has__ClockSnapshotConst(self):
31 self._assert_in_bt2('_ClockSnapshotConst')
32
33 def test_has__UnknownClockSnapshot(self):
34 self._assert_in_bt2('_UnknownClockSnapshot')
35
36 def test_has__SourceComponentClassConst(self):
37 self._assert_in_bt2('_SourceComponentClassConst')
38
39 def test_has__FilterComponentClassConst(self):
40 self._assert_in_bt2('_FilterComponentClassConst')
41
42 def test_has__SinkComponentClassConst(self):
43 self._assert_in_bt2('_SinkComponentClassConst')
44
45 def test_has__SourceComponentConst(self):
46 self._assert_in_bt2('_SourceComponentConst')
47
48 def test_has__FilterComponentConst(self):
49 self._assert_in_bt2('_FilterComponentConst')
50
51 def test_has__SinkComponentConst(self):
52 self._assert_in_bt2('_SinkComponentConst')
53
54 def test_has__UserSourceComponent(self):
55 self._assert_in_bt2('_UserSourceComponent')
56
57 def test_has__UserFilterComponent(self):
58 self._assert_in_bt2('_UserFilterComponent')
59
60 def test_has__UserSinkComponent(self):
61 self._assert_in_bt2('_UserSinkComponent')
62
63 def test_has_ComponentClassType(self):
64 self._assert_in_bt2('ComponentClassType')
65
66 def test_has__ErrorCause(self):
67 self._assert_in_bt2('_ErrorCause')
68
69 def test_has__ComponentErrorCause(self):
70 self._assert_in_bt2('_ComponentErrorCause')
71
72 def test_has__ComponentClassErrorCause(self):
73 self._assert_in_bt2('_ComponentClassErrorCause')
74
75 def test_has__MessageIteratorErrorCause(self):
76 self._assert_in_bt2('_MessageIteratorErrorCause')
77
78 def test_has__Error(self):
79 self._assert_in_bt2('_Error')
80
81 def test_has_EventClassLogLevel(self):
82 self._assert_in_bt2('EventClassLogLevel')
83
84 def test_has__BoolField(self):
85 self._assert_in_bt2('_BoolField')
86
87 def test_has__BitArrayField(self):
88 self._assert_in_bt2('_BitArrayField')
89
90 def test_has__IntegerField(self):
91 self._assert_in_bt2('_IntegerField')
92
93 def test_has__UnsignedIntegerField(self):
94 self._assert_in_bt2('_UnsignedIntegerField')
95
96 def test_has__SignedIntegerField(self):
97 self._assert_in_bt2('_SignedIntegerField')
98
99 def test_has__RealField(self):
100 self._assert_in_bt2('_RealField')
101
102 def test_has__SinglePrecisionRealField(self):
103 self._assert_in_bt2('_SinglePrecisionRealField')
104
105 def test_has__DoublePrecisionRealField(self):
106 self._assert_in_bt2('_DoublePrecisionRealField')
107
108 def test_has__EnumerationField(self):
109 self._assert_in_bt2('_EnumerationField')
110
111 def test_has__UnsignedEnumerationField(self):
112 self._assert_in_bt2('_UnsignedEnumerationField')
113
114 def test_has__SignedEnumerationField(self):
115 self._assert_in_bt2('_SignedEnumerationField')
116
117 def test_has__StringField(self):
118 self._assert_in_bt2('_StringField')
119
120 def test_has__StructureField(self):
121 self._assert_in_bt2('_StructureField')
122
123 def test_has__OptionField(self):
124 self._assert_in_bt2('_VariantField')
125
126 def test_has__VariantField(self):
127 self._assert_in_bt2('_VariantField')
128
129 def test_has__ArrayField(self):
130 self._assert_in_bt2('_ArrayField')
131
132 def test_has__StaticArrayField(self):
133 self._assert_in_bt2('_StaticArrayField')
134
135 def test_has__DynamicArrayField(self):
136 self._assert_in_bt2('_DynamicArrayField')
137
138 def test_has__BoolFieldConst(self):
139 self._assert_in_bt2('_BoolFieldConst')
140
141 def test_has__BitArrayFieldConst(self):
142 self._assert_in_bt2('_BitArrayFieldConst')
143
144 def test_has__IntegerFieldConst(self):
145 self._assert_in_bt2('_IntegerFieldConst')
146
147 def test_has__UnsignedIntegerFieldConst(self):
148 self._assert_in_bt2('_UnsignedIntegerFieldConst')
149
150 def test_has__SignedIntegerFieldConst(self):
151 self._assert_in_bt2('_SignedIntegerFieldConst')
152
153 def test_has__RealFieldConst(self):
154 self._assert_in_bt2('_RealFieldConst')
155
156 def test_has__SinglePrecisionRealFieldConst(self):
157 self._assert_in_bt2('_SinglePrecisionRealFieldConst')
158
159 def test_has__DoublePrecisionRealFieldConst(self):
160 self._assert_in_bt2('_DoublePrecisionRealFieldConst')
161
162 def test_has__EnumerationFieldConst(self):
163 self._assert_in_bt2('_EnumerationFieldConst')
164
165 def test_has__UnsignedEnumerationFieldConst(self):
166 self._assert_in_bt2('_UnsignedEnumerationFieldConst')
167
168 def test_has__SignedEnumerationFieldConst(self):
169 self._assert_in_bt2('_SignedEnumerationFieldConst')
170
171 def test_has__StringFieldConst(self):
172 self._assert_in_bt2('_StringFieldConst')
173
174 def test_has__StructureFieldConst(self):
175 self._assert_in_bt2('_StructureFieldConst')
176
177 def test_has__OptionFieldConst(self):
178 self._assert_in_bt2('_VariantFieldConst')
179
180 def test_has__VariantFieldConst(self):
181 self._assert_in_bt2('_VariantFieldConst')
182
183 def test_has__ArrayFieldConst(self):
184 self._assert_in_bt2('_ArrayFieldConst')
185
186 def test_has__StaticArrayFieldConst(self):
187 self._assert_in_bt2('_StaticArrayFieldConst')
188
189 def test_has__DynamicArrayFieldConst(self):
190 self._assert_in_bt2('_DynamicArrayFieldConst')
191
192 def test_has_IntegerDisplayBase(self):
193 self._assert_in_bt2('IntegerDisplayBase')
194
195 def test_has__BoolFieldClass(self):
196 self._assert_in_bt2('_BoolFieldClass')
197
198 def test_has__BitArrayFieldClass(self):
199 self._assert_in_bt2('_BitArrayFieldClass')
200
201 def test_has__IntegerFieldClass(self):
202 self._assert_in_bt2('_IntegerFieldClass')
203
204 def test_has__UnsignedIntegerFieldClass(self):
205 self._assert_in_bt2('_UnsignedIntegerFieldClass')
206
207 def test_has__SignedIntegerFieldClass(self):
208 self._assert_in_bt2('_SignedIntegerFieldClass')
209
210 def test_has__RealFieldClass(self):
211 self._assert_in_bt2('_RealFieldClass')
212
213 def test_has__EnumerationFieldClass(self):
214 self._assert_in_bt2('_EnumerationFieldClass')
215
216 def test_has__UnsignedEnumerationFieldClass(self):
217 self._assert_in_bt2('_UnsignedEnumerationFieldClass')
218
219 def test_has__SignedEnumerationFieldClass(self):
220 self._assert_in_bt2('_SignedEnumerationFieldClass')
221
222 def test_has__StringFieldClass(self):
223 self._assert_in_bt2('_StringFieldClass')
224
225 def test_has__StructureFieldClass(self):
226 self._assert_in_bt2('_StructureFieldClass')
227
228 def test_has__OptionFieldClass(self):
229 self._assert_in_bt2('_OptionFieldClass')
230
231 def test_has__OptionWithSelectorFieldClass(self):
232 self._assert_in_bt2('_OptionWithSelectorFieldClass')
233
234 def test_has__OptionWithBoolSelectorFieldClass(self):
235 self._assert_in_bt2('_OptionWithBoolSelectorFieldClass')
236
237 def test_has__OptionWithIntegerSelectorFieldClass(self):
238 self._assert_in_bt2('_OptionWithIntegerSelectorFieldClass')
239
240 def test_has__OptionWithUnsignedIntegerSelectorFieldClass(self):
241 self._assert_in_bt2('_OptionWithUnsignedIntegerSelectorFieldClass')
242
243 def test_has__OptionWithSignedIntegerSelectorFieldClass(self):
244 self._assert_in_bt2('_OptionWithSignedIntegerSelectorFieldClass')
245
246 def test_has__VariantFieldClass(self):
247 self._assert_in_bt2('_VariantFieldClass')
248
249 def test_has__VariantFieldClassWithoutSelector(self):
250 self._assert_in_bt2('_VariantFieldClassWithoutSelector')
251
252 def test_has__VariantFieldClassWithSelector(self):
253 self._assert_in_bt2('_VariantFieldClassWithSelector')
254
255 def test_has__VariantFieldClassWithUnsignedSelector(self):
256 self._assert_in_bt2('_VariantFieldClassWithUnsignedSelector')
257
258 def test_has__VariantFieldClassWithSignedSelector(self):
259 self._assert_in_bt2('_VariantFieldClassWithSignedSelector')
260
261 def test_has__ArrayFieldClass(self):
262 self._assert_in_bt2('_ArrayFieldClass')
263
264 def test_has__StaticArrayFieldClass(self):
265 self._assert_in_bt2('_StaticArrayFieldClass')
266
267 def test_has__DynamicArrayFieldClass(self):
268 self._assert_in_bt2('_DynamicArrayFieldClass')
269
270 def test_has__BoolFieldClassConst(self):
271 self._assert_in_bt2('_BoolFieldClassConst')
272
273 def test_has__BitArrayFieldClassConst(self):
274 self._assert_in_bt2('_BitArrayFieldClassConst')
275
276 def test_has__IntegerFieldClassConst(self):
277 self._assert_in_bt2('_IntegerFieldClassConst')
278
279 def test_has__UnsignedIntegerFieldClassConst(self):
280 self._assert_in_bt2('_UnsignedIntegerFieldClassConst')
281
282 def test_has__SignedIntegerFieldClassConst(self):
283 self._assert_in_bt2('_SignedIntegerFieldClassConst')
284
285 def test_has__RealFieldClassConst(self):
286 self._assert_in_bt2('_RealFieldClassConst')
287
288 def test_has__EnumerationFieldClassConst(self):
289 self._assert_in_bt2('_EnumerationFieldClassConst')
290
291 def test_has__UnsignedEnumerationFieldClassConst(self):
292 self._assert_in_bt2('_UnsignedEnumerationFieldClassConst')
293
294 def test_has__SignedEnumerationFieldClassConst(self):
295 self._assert_in_bt2('_SignedEnumerationFieldClassConst')
296
297 def test_has__StringFieldClassConst(self):
298 self._assert_in_bt2('_StringFieldClassConst')
299
300 def test_has__StructureFieldClassConst(self):
301 self._assert_in_bt2('_StructureFieldClassConst')
302
303 def test_has__OptionFieldClassConst(self):
304 self._assert_in_bt2('_OptionFieldClassConst')
305
306 def test_has__OptionWithSelectorFieldClassConst(self):
307 self._assert_in_bt2('_OptionWithSelectorFieldClassConst')
308
309 def test_has__OptionWithBoolSelectorFieldClassConst(self):
310 self._assert_in_bt2('_OptionWithBoolSelectorFieldClassConst')
311
312 def test_has__OptionWithIntegerSelectorFieldClassConst(self):
313 self._assert_in_bt2('_OptionWithIntegerSelectorFieldClassConst')
314
315 def test_has__OptionWithUnsignedIntegerSelectorFieldClassConst(self):
316 self._assert_in_bt2('_OptionWithUnsignedIntegerSelectorFieldClassConst')
317
318 def test_has__OptionWithSignedIntegerSelectorFieldClassConst(self):
319 self._assert_in_bt2('_OptionWithSignedIntegerSelectorFieldClassConst')
320
321 def test_has__VariantFieldClassConst(self):
322 self._assert_in_bt2('_VariantFieldClassConst')
323
324 def test_has__VariantFieldClassWithoutSelectorConst(self):
325 self._assert_in_bt2('_VariantFieldClassWithoutSelectorConst')
326
327 def test_has__VariantFieldClassWithSelectorConst(self):
328 self._assert_in_bt2('_VariantFieldClassWithSelectorConst')
329
330 def test_has__VariantFieldClassWithUnsignedSelectorConst(self):
331 self._assert_in_bt2('_VariantFieldClassWithUnsignedSelectorConst')
332
333 def test_has__VariantFieldClassWithSignedSelectorConst(self):
334 self._assert_in_bt2('_VariantFieldClassWithSignedSelectorConst')
335
336 def test_has__ArrayFieldClassConst(self):
337 self._assert_in_bt2('_ArrayFieldClassConst')
338
339 def test_has__StaticArrayFieldClassConst(self):
340 self._assert_in_bt2('_StaticArrayFieldClassConst')
341
342 def test_has__DynamicArrayFieldClassConst(self):
343 self._assert_in_bt2('_DynamicArrayFieldClassConst')
344
345 def test_has_FieldPathScope(self):
346 self._assert_in_bt2('FieldPathScope')
347
348 def test_has__IndexFieldPathItem(self):
349 self._assert_in_bt2('_IndexFieldPathItem')
350
351 def test_has__CurrentArrayElementFieldPathItem(self):
352 self._assert_in_bt2('_CurrentArrayElementFieldPathItem')
353
354 def test_has__CurrentOptionContentFieldPathItem(self):
355 self._assert_in_bt2('_CurrentOptionContentFieldPathItem')
356
357 def test_has_ComponentDescriptor(self):
358 self._assert_in_bt2('ComponentDescriptor')
359
360 def test_has_Graph(self):
361 self._assert_in_bt2('Graph')
362
363 def test_has_SignedIntegerRange(self):
364 self._assert_in_bt2('SignedIntegerRange')
365
366 def test_has_UnsignedIntegerRange(self):
367 self._assert_in_bt2('UnsignedIntegerRange')
368
369 def test_has_SignedIntegerRangeSet(self):
370 self._assert_in_bt2('SignedIntegerRangeSet')
371
372 def test_has_UnsignedIntegerRangeSet(self):
373 self._assert_in_bt2('UnsignedIntegerRangeSet')
374
375 def test_has__SignedIntegerRangeConst(self):
376 self._assert_in_bt2('_SignedIntegerRangeConst')
377
378 def test_has__UnsignedIntegerRangeConst(self):
379 self._assert_in_bt2('_UnsignedIntegerRangeConst')
380
381 def test_has__SignedIntegerRangeSetConst(self):
382 self._assert_in_bt2('_SignedIntegerRangeSetConst')
383
384 def test_has__UnsignedIntegerRangeSetConst(self):
385 self._assert_in_bt2('_UnsignedIntegerRangeSetConst')
386
387 def test_has_Interrupter(self):
388 self._assert_in_bt2('Interrupter')
389
390 def test_has_LoggingLevel(self):
391 self._assert_in_bt2('LoggingLevel')
392
393 def test_has_get_minimal_logging_level(self):
394 self._assert_in_bt2('get_minimal_logging_level')
395
396 def test_has_get_global_logging_level(self):
397 self._assert_in_bt2('get_global_logging_level')
398
399 def test_has_set_global_logging_level(self):
400 self._assert_in_bt2('set_global_logging_level')
401
402 def test_has__EventMessage(self):
403 self._assert_in_bt2('_EventMessage')
404
405 def test_has__PacketBeginningMessage(self):
406 self._assert_in_bt2('_PacketBeginningMessage')
407
408 def test_has__PacketEndMessage(self):
409 self._assert_in_bt2('_PacketEndMessage')
410
411 def test_has__StreamBeginningMessage(self):
412 self._assert_in_bt2('_StreamBeginningMessage')
413
414 def test_has__StreamEndMessage(self):
415 self._assert_in_bt2('_StreamEndMessage')
416
417 def test_has__MessageIteratorInactivityMessage(self):
418 self._assert_in_bt2('_MessageIteratorInactivityMessage')
419
420 def test_has__DiscardedEventsMessage(self):
421 self._assert_in_bt2('_DiscardedEventsMessage')
422
423 def test_has__DiscardedPacketsMessage(self):
424 self._assert_in_bt2('_DiscardedPacketsMessage')
425
426 def test_has__EventMessageConst(self):
427 self._assert_in_bt2('_EventMessageConst')
428
429 def test_has__PacketBeginningMessageConst(self):
430 self._assert_in_bt2('_PacketBeginningMessageConst')
431
432 def test_has__PacketEndMessageConst(self):
433 self._assert_in_bt2('_PacketEndMessageConst')
434
435 def test_has__StreamBeginningMessageConst(self):
436 self._assert_in_bt2('_StreamBeginningMessageConst')
437
438 def test_has__StreamEndMessageConst(self):
439 self._assert_in_bt2('_StreamEndMessageConst')
440
441 def test_has__MessageIteratorInactivityMessageConst(self):
442 self._assert_in_bt2('_MessageIteratorInactivityMessageConst')
443
444 def test_has__DiscardedEventsMessageConst(self):
445 self._assert_in_bt2('_DiscardedEventsMessageConst')
446
447 def test_has__DiscardedPacketsMessageConst(self):
448 self._assert_in_bt2('_DiscardedPacketsMessageConst')
449
450 def test_has__UserMessageIterator(self):
451 self._assert_in_bt2('_UserMessageIterator')
452
453 def test_has_find_plugins_in_path(self):
454 self._assert_in_bt2('find_plugins_in_path')
455
456 def test_has_find_plugins(self):
457 self._assert_in_bt2('find_plugins')
458
459 def test_has_find_plugin(self):
460 self._assert_in_bt2('find_plugin')
461
462 def test_has_plugin_component_class(self):
463 self._assert_in_bt2('plugin_component_class')
464
465 def test_has_register_plugin(self):
466 self._assert_in_bt2('register_plugin')
467
468 def test_has_QueryExecutor(self):
469 self._assert_in_bt2('QueryExecutor')
470
471 def test_has_AutoSourceComponentSpec(self):
472 self._assert_in_bt2('AutoSourceComponentSpec')
473
474 def test_has_ComponentSpec(self):
475 self._assert_in_bt2('ComponentSpec')
476
477 def test_has_TraceCollectionMessageIterator(self):
478 self._assert_in_bt2('TraceCollectionMessageIterator')
479
480 def test_has_create_value(self):
481 self._assert_in_bt2('create_value')
482
483 def test_has_BoolValue(self):
484 self._assert_in_bt2('BoolValue')
485
486 def test_has__IntegerValue(self):
487 self._assert_in_bt2('_IntegerValue')
488
489 def test_has_UnsignedIntegerValue(self):
490 self._assert_in_bt2('UnsignedIntegerValue')
491
492 def test_has_SignedIntegerValue(self):
493 self._assert_in_bt2('SignedIntegerValue')
494
495 def test_has_RealValue(self):
496 self._assert_in_bt2('RealValue')
497
498 def test_has_StringValue(self):
499 self._assert_in_bt2('StringValue')
500
501 def test_has_ArrayValue(self):
502 self._assert_in_bt2('ArrayValue')
503
504 def test_has_MapValue(self):
505 self._assert_in_bt2('MapValue')
506
507 def test_has_BoolValueConst(self):
508 self._assert_in_bt2('_BoolValueConst')
509
510 def test_has__IntegerValueConst(self):
511 self._assert_in_bt2('_IntegerValueConst')
512
513 def test_has_UnsignedIntegerValueConst(self):
514 self._assert_in_bt2('_UnsignedIntegerValueConst')
515
516 def test_has_SignedIntegerValueConst(self):
517 self._assert_in_bt2('_SignedIntegerValueConst')
518
519 def test_has_RealValueConst(self):
520 self._assert_in_bt2('_RealValueConst')
521
522 def test_has_StringValueConst(self):
523 self._assert_in_bt2('_StringValueConst')
524
525 def test_has_ArrayValueConst(self):
526 self._assert_in_bt2('_ArrayValueConst')
527
528 def test_has_MapValueConst(self):
529 self._assert_in_bt2('_MapValueConst')
530
531 def test_has___version__(self):
532 self._assert_in_bt2('__version__')
533
534
535 if __name__ == '__main__':
536 unittest.main()
This page took 0.042279 seconds and 4 git commands to generate.