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

Function test_supported_hooks

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

Source from the content-addressed store, hash-verified

828
829 #[test]
830 fn test_supported_hooks() {
831 let hooks = make_hook().supported_hooks();
832 assert_eq!(hooks.len(), 6);
833 assert!(hooks.contains(&HookType::SessionStart));
834 assert!(hooks.contains(&HookType::SessionEnd));
835 assert!(hooks.contains(&HookType::TurnStart));
836 assert!(hooks.contains(&HookType::TurnEnd));
837 assert!(hooks.contains(&HookType::PreToolUse));
838 assert!(hooks.contains(&HookType::PostToolUse));
839 }
840
841 #[test]
842 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