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

Function test_full_roundtrip

atomic-agent/src/hooks/pi.rs:854–863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

852
853 #[test]
854 fn test_full_roundtrip() {
855 let hook = make_hook();
856
857 // Parse all event types
858 let input = br#"{"session_id": "roundtrip-test"}"#;
859 for ht in hook.supported_hooks() {
860 let event = hook.parse_event(ht, input).unwrap();
861 assert_eq!(event.session_id, "roundtrip-test");
862 }
863 }
864
865 // uuid_short helper tests
866

Callers

nothing calls this directly

Calls 4

make_hookFunction · 0.70
supported_hooksMethod · 0.45
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected