test_moduleInputMessageLifetime
Check source lifetimes for subscriptions created inside module methods.
Both radiation wrappers must agree on the shared planet-vector type.
- test_moduleInputMessageLifetime.test_configuration_retains_and_releases_sources(case, release)[source]
Native readers retain local inputs through growth and release them afterward.
Check weak references before reading so the unfixed code fails without dereferencing freed storage. Distinct payloads and timestamps also verify that every reader retains its own source after vector reallocation.
- test_moduleInputMessageLifetime.test_copied_reader_outlives_module()[source]
A copied native reader retains the source after its module is destroyed.
- test_moduleInputMessageLifetime.test_downlink_rejects_invalid_reader_without_retaining_sources()[source]
The internal reader entry point rejects mismatched and null sources.
- test_moduleInputMessageLifetime.test_downlink_retains_sources_after_duplicate_registration()[source]
A rejected duplicate must not replace the retention on another reader.
- test_moduleInputMessageLifetime.test_formation_retains_both_inputs()[source]
The barycenter method retains both inputs and produces the expected state.
- test_moduleInputMessageLifetime.test_mapping_rejects_input_without_replacing_retention()[source]
A rejected mapping name leaves the previously registered source intact.
- test_moduleInputMessageLifetime.test_pending_facet_readers_retain_sources(configure_first, copy_reader)[source]
Pending and active facet readers preserve retention in either setup order.
- test_moduleInputMessageLifetime.test_private_facet_readers_retain_sources()[source]
Private facet readers keep temporary inputs alive through native reads.
- test_moduleInputMessageLifetime.test_private_thruster_readers_retain_sources(case)[source]
Private readers retain distinct inputs through growth and module destruction.