test_generateSWIGModules

Unit tests for message auto-source generators.

test_generateSWIGModules.test_generated_message_bindings_use_module_local_classes(tmp_path)[source]

Generated subscription helpers do not assume the Basilisk package path.

test_generateSWIGModules.test_generated_read_functor_without_c_interface_uses_cpp_message(tmp_path)[source]

Generated helpers still work when no C-interface symbol exists.

test_generateSWIGModules.test_payload_equality_generates_eigen_comparison()[source]

Generated equality compares Eigen dimensions and coefficients.

test_generateSWIGModules.test_payload_equality_generates_fixed_array_comparison()[source]

Generated equality compares fixed numeric array payloads element-wise.

test_generateSWIGModules.test_payload_equality_generates_nested_struct_comparison()[source]

Generated equality walks nested struct arrays field by field.

test_generateSWIGModules.test_payload_equality_returns_none_for_unsupported_fields()[source]

Payloads with pointer or unsupported fields return None — no specialization generated.

test_generateSWIGModules.test_payload_equality_uses_operator_equal_for_safe_stl_fields()[source]

Generated equality uses operator== for supported STL payload fields.