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

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

 test_flattened_input_sensors_in_array (self)
 test_struct_reconstruction_in_on_step (self)
 test_struct_reconstruction_at_top_of_on_step (self)
 test_mixed_struct_and_plain_inputs (self)

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

Test struct flatten mode generates correct input sensor arrays and struct reconstruction.

Методы

◆ test_flattened_input_sensors_in_array()

tests.test_codegen_struct_flatten.TestStructFlattenCodegenInputs.test_flattened_input_sensors_in_array ( self)
Each struct field becomes a separate sensor entry.

◆ test_mixed_struct_and_plain_inputs()

tests.test_codegen_struct_flatten.TestStructFlattenCodegenInputs.test_mixed_struct_and_plain_inputs ( self)
Non-struct entries are unaffected by struct flatten.

◆ test_struct_reconstruction_at_top_of_on_step()

tests.test_codegen_struct_flatten.TestStructFlattenCodegenInputs.test_struct_reconstruction_at_top_of_on_step ( self)
Struct reconstruction should appear at the top of uniset_on_step.

◆ test_struct_reconstruction_in_on_step()

tests.test_codegen_struct_flatten.TestStructFlattenCodegenInputs.test_struct_reconstruction_in_on_step ( self)
Flattened input struct is reconstructed: let sensor = { value: in_AI_Value_S, valid: in_DI_Valid_S };