test_unsubscribe

test_unsubscribe.assertRawPointersCleared(outMsg: CModuleTemplateMsg_C | CModuleTemplateMsg)[source]

Verify that unsubscribing clears a C++ reader’s type-erased pointers.

test_unsubscribe.assertRawPointersFollowResubscription(firstOutMsg: CModuleTemplateMsg_C | CModuleTemplateMsg, secondOutMsg: CModuleTemplateMsg_C | CModuleTemplateMsg)[source]

Verify that a borrowed pointer view follows reader re-subscription.

test_unsubscribe.pointerAddresses(pointers: messagePointerData)[source]

Return the numeric header and payload addresses from a raw pointer view.

test_unsubscribe.test_copied_messages_rebind_raw_pointers()[source]

Verify that copied and relocated messages expose their own storage.

test_unsubscribe.test_copied_readers_preserve_raw_pointers()[source]

Verify that copied readers retain the subscribed source pointer view.

test_unsubscribe.test_message_base_types_are_shared_across_payload_modules()[source]

Verify that generated messages use the central Python base proxy types.

test_unsubscribe.test_raw_pointer_base_types_default_to_null()[source]

Verify that standalone pointer and base objects default to null addresses.

test_unsubscribe.test_raw_pointer_bookkeeping_is_not_public()[source]

Verify that generated bindings hide raw-pointer bookkeeping members.

test_unsubscribe.test_raw_pointer_views_follow_resubscription()[source]

Verify that held views track new C and C++ message sources.

test_unsubscribe.test_unsubscribe()[source]

testing the unsubscribe functions of C and C++ messages

test_unsubscribe.test_unsubscribe_clears_raw_pointers()[source]

Verify that raw pointers are cleared for both C and C++ message sources.