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

Function test_session_prefix

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

Source from the content-addressed store, hash-verified

616
617 #[test]
618 fn test_session_prefix() {
619 let prefix = encode_session_prefix(42);
620 let (prov_id, secondary) = decode_session_event_key(&prefix);
621
622 assert_eq!(prov_id, 42);
623 assert_eq!(secondary, 0);
624 }
625
626 #[test]
627 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