UniSet 2.45.1
Класс tests.test_codegen_struct_flatten.TestStructFlattenCodegenOutputs

Открытые члены

 test_flattened_output_sensors_in_array (self)
 test_output_field_extraction_at_bottom (self)
 test_output_field_extraction_at_bottom_of_on_step (self)
 test_mixed_struct_and_plain_outputs (self)

Подробное описание

Test struct flatten mode generates correct output sensor arrays and field extraction.

Методы

◆ test_flattened_output_sensors_in_array()

tests.test_codegen_struct_flatten.TestStructFlattenCodegenOutputs.test_flattened_output_sensors_in_array ( self)
Each struct field becomes a separate output sensor entry.

◆ test_mixed_struct_and_plain_outputs()

tests.test_codegen_struct_flatten.TestStructFlattenCodegenOutputs.test_mixed_struct_and_plain_outputs ( self)
Non-struct outputs are unaffected by struct flatten.

◆ test_output_field_extraction_at_bottom()

tests.test_codegen_struct_flatten.TestStructFlattenCodegenOutputs.test_output_field_extraction_at_bottom ( self)
Flattened output struct fields are extracted: out_SensorName = result.field;

◆ test_output_field_extraction_at_bottom_of_on_step()

tests.test_codegen_struct_flatten.TestStructFlattenCodegenOutputs.test_output_field_extraction_at_bottom_of_on_step ( self)
Output extraction should be at the bottom of uniset_on_step.