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

Function test_parse_extra_fields_ignored

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

Source from the content-addressed store, hash-verified

809
810 #[test]
811 fn test_parse_extra_fields_ignored() {
812 let hook = make_hook();
813 let input = br#"{"session_id": "s1", "unknown_field": "whatever", "extra": 42}"#;
814 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
815 assert_eq!(event.session_id, "s1");
816 }
817
818 // verb_to_hook_type tests
819

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected