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

Function test_session_prefix

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

Source from the content-addressed store, hash-verified

1360
1361 #[test]
1362 fn test_session_prefix() {
1363 let prefix = encode_session_prefix(42);
1364 let (prov_id, secondary) = decode_session_event_key(&prefix);
1365
1366 assert_eq!(prov_id, 42);
1367 assert_eq!(secondary, 0);
1368 }
1369
1370 #[test]
1371 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