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

Function test_mock_agent_supported_hooks

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

Source from the content-addressed store, hash-verified

631
632 #[test]
633 fn test_mock_agent_supported_hooks() {
634 let agent = MockAgent::new("test");
635 let hooks = agent.supported_hooks();
636 assert_eq!(hooks.len(), 4);
637 assert!(hooks.contains(&HookType::TurnStart));
638 assert!(hooks.contains(&HookType::TurnEnd));
639 assert!(hooks.contains(&HookType::SessionStart));
640 assert!(hooks.contains(&HookType::SessionEnd));
641 }
642
643 #[test]
644 fn test_mock_agent_detect_presence_default_false() {

Callers

nothing calls this directly

Calls 1

supported_hooksMethod · 0.45

Tested by

no test coverage detected