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:554–560  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552
553 #[test]
554 fn test_mock_agent_parse_event_success() {
555 let agent = MockAgent::new("test");
556 let input = br#"{"session_id": "sess-123"}"#;
557 let event = agent.parse_event(HookType::TurnStart, input).unwrap();
558 assert_eq!(event.session_id, "sess-123");
559 assert_eq!(event.event_type, HookType::TurnStart);
560 }
561
562 #[test]
563 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