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

Function test_supported_hooks

atomic-agent/src/hooks/claude_code/tests.rs:34–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33 #[test]
34 fn test_supported_hooks() {
35 let hook = make_hook();
36 let hooks = hook.supported_hooks();
37 assert_eq!(hooks.len(), 6);
38 assert!(hooks.contains(&HookType::SessionStart));
39 assert!(hooks.contains(&HookType::SessionEnd));
40 assert!(hooks.contains(&HookType::TurnStart));
41 assert!(hooks.contains(&HookType::TurnEnd));
42 assert!(hooks.contains(&HookType::PreToolUse));
43 assert!(hooks.contains(&HookType::PostToolUse));
44 }
45
46 #[test]
47 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