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

Function test_session_envelope_not_other_data

atomic-agent/src/lib.rs:279–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277
278 #[test]
279 fn test_session_envelope_not_other_data() {
280 // Plain bytes should not be mistaken for an envelope
281 assert!(!SessionEnvelope::is_session_envelope(b"hello world"));
282 assert!(!SessionEnvelope::is_session_envelope(b""));
283 assert!(!SessionEnvelope::is_session_envelope(
284 &serde_json::to_vec(&serde_json::json!({"key": "value"})).unwrap()
285 ));
286 }
287}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected