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

Function test_parse_session_start

atomic-agent/src/hooks/gemini_cli.rs:900–908  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

898
899 #[test]
900 fn test_parse_session_start() {
901 let hook = make_hook();
902 let input =
903 br#"{"session_id": "sess-123", "transcript_path": "/tmp/t.json", "source": "startup"}"#;
904 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
905 assert_eq!(event.session_id, "sess-123");
906 assert_eq!(event.event_type, HookType::SessionStart);
907 assert!(event.transcript_path.is_some());
908 }
909
910 #[test]
911 fn test_parse_session_end() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected