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

Source from the content-addressed store, hash-verified

491
492 #[test]
493 fn test_mock_agent_parse_event_success() {
494 let agent = MockAgent::new("test");
495 let input = br#"{"session_id": "sess-123"}"#;
496 let event = agent.parse_event(HookType::TurnStart, input).unwrap();
497 assert_eq!(event.session_id, "sess-123");
498 assert_eq!(event.event_type, HookType::TurnStart);
499 }
500
501 #[test]
502 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