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

Function test_validate_session_id_too_long

atomic-agent/src/turn/session.rs:1097–1101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1095
1096 #[test]
1097 fn test_validate_session_id_too_long() {
1098 let long_id = "a".repeat(256);
1099 let err = validate_session_id(&long_id).unwrap_err();
1100 assert!(matches!(err, AgentError::SessionIdInvalid { .. }));
1101 }
1102
1103 // SessionStore: save / load
1104

Callers

nothing calls this directly

Calls 1

validate_session_idFunction · 0.85

Tested by

no test coverage detected