test_generateSWIGModules
Unit tests for message auto-source generators.
- test_generateSWIGModules.test_generated_interface_hides_read_functor_ownership_operations(tmp_path)[source]
Generated bindings omit C++-only reader ownership operations.
- 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_keepalive_callbacks_skip_python_finalization()[source]
Keep-alive callbacks do not acquire the GIL while Python is finalizing.
- test_generateSWIGModules.test_package_init_rejects_duplicate_manifest_entries(tmp_path)[source]
Duplicate payload module names fail with their manifest line numbers.
- test_generateSWIGModules.test_package_init_rejects_invalid_manifest_entry(tmp_path)[source]
Only payload module names can be emitted as package imports.
- test_generateSWIGModules.test_package_init_removes_only_stale_payload_artifacts(tmp_path)[source]
Removed or renamed payloads lose only their known generated artifacts.
- test_generateSWIGModules.test_package_init_uses_only_cmake_manifest_entries(tmp_path)[source]
Package imports are sorted and limited to the inventory supplied by CMake.
- 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.