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

Function test_parse_session_start_with_model

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

Source from the content-addressed store, hash-verified

500
501 #[test]
502 fn test_parse_session_start_with_model() {
503 let hook = make_hook();
504 let input = br#"{"session_id":"s1","model":"claude-sonnet-4"}"#;
505 let event = hook.parse_event(HookType::SessionStart, input).unwrap();
506 assert_eq!(event.session_id, "s1");
507 let raw = event.raw_json.unwrap();
508 assert_eq!(raw["model"], "claude-sonnet-4");
509 }
510
511 #[test]
512 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