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

Function test_parse_extra_fields_ignored

atomic-agent/src/hooks/cursor.rs:1107–1112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1105
1106 #[test]
1107 fn test_parse_extra_fields_ignored() {
1108 let hook = make_hook();
1109 let input = br#"{"conversation_id": "c1", "unknown_field": "whatever", "extra": 42}"#;
1110 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
1111 assert_eq!(event.session_id, "c1");
1112 }
1113
1114 // verb_to_hook_type tests
1115

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected