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

Function test_validate_session_id_valid

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

Source from the content-addressed store, hash-verified

1967
1968 #[test]
1969 fn test_validate_session_id_valid() {
1970 assert!(validate_session_id("sess-abc-123").is_ok());
1971 assert!(validate_session_id("2026-01-15-abc123de").is_ok());
1972 assert!(validate_session_id("simple").is_ok());
1973 assert!(validate_session_id("with_underscore").is_ok());
1974 assert!(validate_session_id("with.dots").is_ok());
1975 }
1976
1977 #[test]
1978 fn test_validate_session_id_empty() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected