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

Function test_full_roundtrip

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

Source from the content-addressed store, hash-verified

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

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