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__ClockSnapshot(self
):
31 self
._assert
_in
_bt
2('_ClockSnapshot')
33 def test_has__UnknownClockSnapshot(self
):
34 self
._assert
_in
_bt
2('_UnknownClockSnapshot')
36 def test_has__SourceComponentClass(self
):
37 self
._assert
_in
_bt
2('_SourceComponentClass')
39 def test_has__FilterComponentClass(self
):
40 self
._assert
_in
_bt
2('_FilterComponentClass')
42 def test_has__SinkComponentClass(self
):
43 self
._assert
_in
_bt
2('_SinkComponentClass')
45 def test_has__SourceComponent(self
):
46 self
._assert
_in
_bt
2('_SourceComponent')
48 def test_has__FilterComponent(self
):
49 self
._assert
_in
_bt
2('_FilterComponent')
51 def test_has__SinkComponent(self
):
52 self
._assert
_in
_bt
2('_SinkComponent')
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__EnumerationField(self
):
103 self
._assert
_in
_bt
2('_EnumerationField')
105 def test_has__UnsignedEnumerationField(self
):
106 self
._assert
_in
_bt
2('_UnsignedEnumerationField')
108 def test_has__SignedEnumerationField(self
):
109 self
._assert
_in
_bt
2('_SignedEnumerationField')
111 def test_has__StringField(self
):
112 self
._assert
_in
_bt
2('_StringField')
114 def test_has__StructureField(self
):
115 self
._assert
_in
_bt
2('_StructureField')
117 def test_has__OptionField(self
):
118 self
._assert
_in
_bt
2('_VariantField')
120 def test_has__VariantField(self
):
121 self
._assert
_in
_bt
2('_VariantField')
123 def test_has__ArrayField(self
):
124 self
._assert
_in
_bt
2('_ArrayField')
126 def test_has__StaticArrayField(self
):
127 self
._assert
_in
_bt
2('_StaticArrayField')
129 def test_has__DynamicArrayField(self
):
130 self
._assert
_in
_bt
2('_DynamicArrayField')
132 def test_has_IntegerDisplayBase(self
):
133 self
._assert
_in
_bt
2('IntegerDisplayBase')
135 def test_has__BoolFieldClass(self
):
136 self
._assert
_in
_bt
2('_BoolFieldClass')
138 def test_has__BitArrayFieldClass(self
):
139 self
._assert
_in
_bt
2('_BitArrayFieldClass')
141 def test_has__IntegerFieldClass(self
):
142 self
._assert
_in
_bt
2('_IntegerFieldClass')
144 def test_has__UnsignedIntegerFieldClass(self
):
145 self
._assert
_in
_bt
2('_UnsignedIntegerFieldClass')
147 def test_has__SignedIntegerFieldClass(self
):
148 self
._assert
_in
_bt
2('_SignedIntegerFieldClass')
150 def test_has__RealFieldClass(self
):
151 self
._assert
_in
_bt
2('_RealFieldClass')
153 def test_has__EnumerationFieldClass(self
):
154 self
._assert
_in
_bt
2('_EnumerationFieldClass')
156 def test_has__UnsignedEnumerationFieldClass(self
):
157 self
._assert
_in
_bt
2('_UnsignedEnumerationFieldClass')
159 def test_has__SignedEnumerationFieldClass(self
):
160 self
._assert
_in
_bt
2('_SignedEnumerationFieldClass')
162 def test_has__StringFieldClass(self
):
163 self
._assert
_in
_bt
2('_StringFieldClass')
165 def test_has__StructureFieldClass(self
):
166 self
._assert
_in
_bt
2('_StructureFieldClass')
168 def test_has__OptionFieldClass(self
):
169 self
._assert
_in
_bt
2('_OptionFieldClass')
171 def test_has__VariantFieldClass(self
):
172 self
._assert
_in
_bt
2('_VariantFieldClass')
174 def test_has__VariantFieldClassWithoutSelector(self
):
175 self
._assert
_in
_bt
2('_VariantFieldClassWithoutSelector')
177 def test_has__VariantFieldClassWithSelector(self
):
178 self
._assert
_in
_bt
2('_VariantFieldClassWithSelector')
180 def test_has__VariantFieldClassWithUnsignedSelector(self
):
181 self
._assert
_in
_bt
2('_VariantFieldClassWithUnsignedSelector')
183 def test_has__VariantFieldClassWithSignedSelector(self
):
184 self
._assert
_in
_bt
2('_VariantFieldClassWithSignedSelector')
186 def test_has__ArrayFieldClass(self
):
187 self
._assert
_in
_bt
2('_ArrayFieldClass')
189 def test_has__StaticArrayFieldClass(self
):
190 self
._assert
_in
_bt
2('_StaticArrayFieldClass')
192 def test_has__DynamicArrayFieldClass(self
):
193 self
._assert
_in
_bt
2('_DynamicArrayFieldClass')
195 def test_has_FieldPathScope(self
):
196 self
._assert
_in
_bt
2('FieldPathScope')
198 def test_has__IndexFieldPathItem(self
):
199 self
._assert
_in
_bt
2('_IndexFieldPathItem')
201 def test_has__CurrentArrayElementFieldPathItem(self
):
202 self
._assert
_in
_bt
2('_CurrentArrayElementFieldPathItem')
204 def test_has__CurrentOptionContentFieldPathItem(self
):
205 self
._assert
_in
_bt
2('_CurrentOptionContentFieldPathItem')
207 def test_has_ComponentDescriptor(self
):
208 self
._assert
_in
_bt
2('ComponentDescriptor')
210 def test_has_Graph(self
):
211 self
._assert
_in
_bt
2('Graph')
213 def test_has_SignedIntegerRange(self
):
214 self
._assert
_in
_bt
2('SignedIntegerRange')
216 def test_has_UnsignedIntegerRange(self
):
217 self
._assert
_in
_bt
2('UnsignedIntegerRange')
219 def test_has_SignedIntegerRangeSet(self
):
220 self
._assert
_in
_bt
2('SignedIntegerRangeSet')
222 def test_has_UnsignedIntegerRangeSet(self
):
223 self
._assert
_in
_bt
2('UnsignedIntegerRangeSet')
225 def test_has_Interrupter(self
):
226 self
._assert
_in
_bt
2('Interrupter')
228 def test_has_LoggingLevel(self
):
229 self
._assert
_in
_bt
2('LoggingLevel')
231 def test_has_get_minimal_logging_level(self
):
232 self
._assert
_in
_bt
2('get_minimal_logging_level')
234 def test_has_get_global_logging_level(self
):
235 self
._assert
_in
_bt
2('get_global_logging_level')
237 def test_has_set_global_logging_level(self
):
238 self
._assert
_in
_bt
2('set_global_logging_level')
240 def test_has__EventMessage(self
):
241 self
._assert
_in
_bt
2('_EventMessage')
243 def test_has__PacketBeginningMessage(self
):
244 self
._assert
_in
_bt
2('_PacketBeginningMessage')
246 def test_has__PacketEndMessage(self
):
247 self
._assert
_in
_bt
2('_PacketEndMessage')
249 def test_has__StreamBeginningMessage(self
):
250 self
._assert
_in
_bt
2('_StreamBeginningMessage')
252 def test_has__StreamEndMessage(self
):
253 self
._assert
_in
_bt
2('_StreamEndMessage')
255 def test_has__MessageIteratorInactivityMessage(self
):
256 self
._assert
_in
_bt
2('_MessageIteratorInactivityMessage')
258 def test_has__DiscardedEventsMessage(self
):
259 self
._assert
_in
_bt
2('_DiscardedEventsMessage')
261 def test_has__DiscardedPacketsMessage(self
):
262 self
._assert
_in
_bt
2('_DiscardedPacketsMessage')
264 def test_has__UserMessageIterator(self
):
265 self
._assert
_in
_bt
2('_UserMessageIterator')
267 def test_has_find_plugins_in_path(self
):
268 self
._assert
_in
_bt
2('find_plugins_in_path')
270 def test_has_find_plugins(self
):
271 self
._assert
_in
_bt
2('find_plugins')
273 def test_has_find_plugin(self
):
274 self
._assert
_in
_bt
2('find_plugin')
276 def test_has_plugin_component_class(self
):
277 self
._assert
_in
_bt
2('plugin_component_class')
279 def test_has_register_plugin(self
):
280 self
._assert
_in
_bt
2('register_plugin')
282 def test_has_QueryExecutor(self
):
283 self
._assert
_in
_bt
2('QueryExecutor')
285 def test_has_AutoSourceComponentSpec(self
):
286 self
._assert
_in
_bt
2('AutoSourceComponentSpec')
288 def test_has_ComponentSpec(self
):
289 self
._assert
_in
_bt
2('ComponentSpec')
291 def test_has_TraceCollectionMessageIterator(self
):
292 self
._assert
_in
_bt
2('TraceCollectionMessageIterator')
294 def test_has_create_value(self
):
295 self
._assert
_in
_bt
2('create_value')
297 def test_has_BoolValue(self
):
298 self
._assert
_in
_bt
2('BoolValue')
300 def test_has__IntegerValue(self
):
301 self
._assert
_in
_bt
2('_IntegerValue')
303 def test_has_UnsignedIntegerValue(self
):
304 self
._assert
_in
_bt
2('UnsignedIntegerValue')
306 def test_has_SignedIntegerValue(self
):
307 self
._assert
_in
_bt
2('SignedIntegerValue')
309 def test_has_RealValue(self
):
310 self
._assert
_in
_bt
2('RealValue')
312 def test_has_StringValue(self
):
313 self
._assert
_in
_bt
2('StringValue')
315 def test_has_ArrayValue(self
):
316 self
._assert
_in
_bt
2('ArrayValue')
318 def test_has_MapValue(self
):
319 self
._assert
_in
_bt
2('MapValue')
321 def test_has_BoolValueConst(self
):
322 self
._assert
_in
_bt
2('_BoolValueConst')
324 def test_has__IntegerValueConst(self
):
325 self
._assert
_in
_bt
2('_IntegerValueConst')
327 def test_has_UnsignedIntegerValueConst(self
):
328 self
._assert
_in
_bt
2('_UnsignedIntegerValueConst')
330 def test_has_SignedIntegerValueConst(self
):
331 self
._assert
_in
_bt
2('_SignedIntegerValueConst')
333 def test_has_RealValueConst(self
):
334 self
._assert
_in
_bt
2('_RealValueConst')
336 def test_has_StringValueConst(self
):
337 self
._assert
_in
_bt
2('_StringValueConst')
339 def test_has_ArrayValueConst(self
):
340 self
._assert
_in
_bt
2('_ArrayValueConst')
342 def test_has_MapValueConst(self
):
343 self
._assert
_in
_bt
2('_MapValueConst')
345 def test_has___version__(self
):
346 self
._assert
_in
_bt
2('__version__')
This page took 0.036729 seconds and 4 git commands to generate.