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

Function test_parse_session_start

atomic-agent/src/hooks/devin.rs:493–499  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

491
492 #[test]
493 fn test_parse_session_start() {
494 let hook = make_hook();
495 let input = br#"{"session_id":"devin-123","cwd":"/tmp","model":"claude-sonnet-4"}"#;
496 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
497 assert_eq!(event.session_id, "devin-123");
498 assert_eq!(event.event_type, HookType::SessionStart);
499 }
500
501 #[test]
502 fn test_parse_session_start_with_model() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected