test_capability_decode ====================== .. py:module:: test_capability_decode Functions --------- .. autoapisummary:: test_capability_decode.test_an_all_ones_version_word_decodes_as_not_advertised test_capability_decode.test_the_bitmap_words_decode_concretely test_capability_decode.test_snapshot_reader_normalizes_undecoded_capability_words test_capability_decode.test_operators_from_contract_uses_per_tile_truth_not_expansion test_capability_decode.test_contract_from_manifest_metadata_round_trips test_capability_decode.test_device_snapshot_normalizes_undecoded_capability_words Module Contents --------------- .. py:function:: test_an_all_ones_version_word_decodes_as_not_advertised() -> None Two readers used to disagree on this exact word: one mapped it to (0, 1) — a plausible-looking old shell — while the other ran it through from_u32 and got (65535, 65535), which compares GREATER than the capability-word version and so read words the shell never decoded. A sentinel below every real version makes them agree. .. py:function:: test_the_bitmap_words_decode_concretely() -> None .. py:function:: test_snapshot_reader_normalizes_undecoded_capability_words() -> None .. py:function:: test_operators_from_contract_uses_per_tile_truth_not_expansion() -> None .. py:function:: test_contract_from_manifest_metadata_round_trips() -> None .. py:function:: test_device_snapshot_normalizes_undecoded_capability_words(tmp_path) -> None