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

Function test_mock_agent_parse_event_success

atomic-agent/src/hooks/mod.rs:522–528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520
521 #[test]
522 fn test_mock_agent_parse_event_success() {
523 let agent = MockAgent::new("test");
524 let input = br#"{"session_id": "sess-123"}"#;
525 let event = agent.parse_event(HookType::TurnStart, input).unwrap();
526 assert_eq!(event.session_id, "sess-123");
527 assert_eq!(event.event_type, HookType::TurnStart);
528 }
529
530 #[test]
531 fn test_mock_agent_parse_event_empty_input() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected