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

Function test_parse_extra_fields_ignored

atomic-agent/src/hooks/cline.rs:931–936  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

929
930 #[test]
931 fn test_parse_extra_fields_ignored() {
932 let hook = make_hook();
933 let input = br#"{"taskId": "t1", "unknown_field": 42, "another": "value"}"#;
934 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
935 assert_eq!(event.session_id, "t1");
936 }
937
938 #[test]
939 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