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

Function test_parse_extra_fields_ignored

atomic-agent/src/hooks/copilot.rs:770–775  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

768
769 #[test]
770 fn test_parse_extra_fields_ignored() {
771 let hook = make_hook();
772 let input = br#"{"session_id": "s1", "unknown_field": 42, "another": "value"}"#;
773 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
774 assert_eq!(event.session_id, "s1");
775 }
776
777 #[test]
778 fn test_parse_minimal_input() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected