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

Source from the content-addressed store, hash-verified

523
524 #[test]
525 fn test_mock_agent_parse_event_success() {
526 let agent = MockAgent::new("test");
527 let input = br#"{"session_id": "sess-123"}"#;
528 let event = agent.parse_event(HookType::TurnStart, input).unwrap();
529 assert_eq!(event.session_id, "sess-123");
530 assert_eq!(event.event_type, HookType::TurnStart);
531 }
532
533 #[test]
534 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