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

Function test_supported_hooks

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

Source from the content-addressed store, hash-verified

814
815 #[test]
816 fn test_supported_hooks() {
817 let hooks = make_hook().supported_hooks();
818 assert_eq!(hooks.len(), 6);
819 assert!(hooks.contains(&HookType::SessionStart));
820 assert!(hooks.contains(&HookType::SessionEnd));
821 assert!(hooks.contains(&HookType::TurnStart));
822 assert!(hooks.contains(&HookType::TurnEnd));
823 assert!(hooks.contains(&HookType::PreToolUse));
824 assert!(hooks.contains(&HookType::PostToolUse));
825 }
826
827 #[test]
828 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