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

Function test_supported_hooks

atomic-agent/src/hooks/codex.rs:672–681  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

670
671 #[test]
672 fn test_supported_hooks() {
673 let hooks = make_hook().supported_hooks();
674 assert_eq!(hooks.len(), 5);
675 assert!(hooks.contains(&HookType::SessionStart));
676 assert!(hooks.contains(&HookType::TurnStart));
677 assert!(hooks.contains(&HookType::TurnEnd));
678 assert!(hooks.contains(&HookType::PreToolUse));
679 assert!(hooks.contains(&HookType::PostToolUse));
680 assert!(!hooks.contains(&HookType::SessionEnd));
681 }
682
683 #[test]
684 fn test_hook_verbs() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
supported_hooksMethod · 0.45

Tested by

no test coverage detected