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

Function test_parse_skips_a_null_spelling

atomic-agent/src/hooks/grok.rs:705–710  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

703
704 #[test]
705 fn test_parse_skips_a_null_spelling() {
706 let hook = make_hook();
707 let input = br#"{"sessionId": null, "session_id": "snake"}"#;
708 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
709 assert_eq!(event.session_id, "snake");
710 }
711
712 #[test]
713 fn test_parse_every_spelling_null() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected