MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_session_prefix

Function test_session_prefix

atomic-core/src/change/session.rs:857–863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

855
856 #[test]
857 fn test_session_prefix() {
858 let prefix = encode_session_prefix(42);
859 let (prov_id, secondary) = decode_session_event_key(&prefix);
860
861 assert_eq!(prov_id, 42);
862 assert_eq!(secondary, 0);
863 }
864
865 #[test]
866 fn test_session_prefix_ordering() {

Callers

nothing calls this directly

Calls 2

encode_session_prefixFunction · 0.85
decode_session_event_keyFunction · 0.85

Tested by

no test coverage detected