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

Function test_parse_minimal_input

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

Source from the content-addressed store, hash-verified

776
777 #[test]
778 fn test_parse_minimal_input() {
779 let hook = make_hook();
780 let input = br#"{}"#;
781 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
782 // Should generate a fallback session ID
783 assert!(event.session_id.starts_with("copilot-"));
784 }
785
786 // ── verb_to_hook_type tests ─────────────────────────────────────
787

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected