Lines Matching refs:isinstance
21 assert isinstance(serializer, programSerializer.ProgramSerializer)
22 assert isinstance(program, ebpfProgram.EbpfProgram)
37 assert isinstance(selectVarName, str)
38 assert isinstance(serializer, programSerializer.ProgramSerializer)
39 assert isinstance(program, ebpfProgram.EbpfProgram)
44 if isinstance(e, p4_field):
46 assert isinstance(instance, p4_header_instance)
51 assert isinstance(ebpfStack, ebpfInstance.EbpfHeaderStack)
53 if isinstance(instance.index, int):
64 assert isinstance(ebpfHeader, ebpfInstance.EbpfHeader)
69 assert isinstance(ebpfField, ebpfStructType.EbpfField)
81 elif isinstance(e, tuple):
104 assert isinstance(startBit, int)
105 assert isinstance(width, int)
106 assert isinstance(alignment, int)
145 assert isinstance(tpl, tuple)
157 assert isinstance(selectVarName, str)
158 assert isinstance(serializer, programSerializer.ProgramSerializer)
159 assert isinstance(program, ebpfProgram.EbpfProgram)
167 if isinstance(e, int):
169 elif isinstance(e, tuple):
172 elif isinstance(e, p4_parse_value_set):
189 if isinstance(value, p4_parse_state):
191 elif isinstance(value, p4_table):
193 elif isinstance(value, p4_conditional_node):
195 elif isinstance(value, p4_parser_exception):
215 assert isinstance(serializer, programSerializer.ProgramSerializer)
216 assert isinstance(program, ebpfProgram.EbpfProgram)
224 elif isinstance(branch_on, list):
233 assert isinstance(serializer, programSerializer.ProgramSerializer)
234 assert isinstance(program, ebpfProgram.EbpfProgram)
247 assert isinstance(index, str)
248 assert isinstance(headerInstanceName, str)
249 assert isinstance(field, ebpfStructType.EbpfField)
250 assert isinstance(serializer, programSerializer.ProgramSerializer)
251 assert isinstance(alignment, int)
252 assert isinstance(program, ebpfProgram.EbpfProgram)
320 assert isinstance(serializer, programSerializer.ProgramSerializer)
321 assert isinstance(headerInstance, p4_header_instance)
322 assert isinstance(program, ebpfProgram.EbpfProgram)
326 assert isinstance(ebpfStack, ebpfInstance.EbpfHeaderStack)
341 if isinstance(headerInstance.index, int):
358 assert isinstance(field, ebpfStructType.EbpfField)
368 assert isinstance(ebpfStack, ebpfInstance.EbpfHeaderStack)
376 assert isinstance(serializer, programSerializer.ProgramSerializer)
377 assert isinstance(program, ebpfProgram.EbpfProgram)
378 assert isinstance(field, p4_field)
381 assert isinstance(dest, ebpfInstance.SimpleInstance)
383 assert isinstance(destType, ebpfStructType.EbpfStructType)
401 if isinstance(value, int):
408 elif isinstance(value, tuple):
410 elif isinstance(value, p4_field):
412 if isinstance(source, ebpfInstance.EbpfMetadata):