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

Function test_supported_hooks

atomic-agent/src/hooks/sherpa.rs:348–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346
347 #[test]
348 fn test_supported_hooks() {
349 let hooks = make_hook().supported_hooks();
350 assert!(hooks.contains(&HookType::SessionStart));
351 assert!(hooks.contains(&HookType::SessionEnd));
352 assert!(hooks.contains(&HookType::TurnStart));
353 assert!(hooks.contains(&HookType::TurnEnd));
354 // Tool-use hooks are NOT in supported list
355 assert!(!hooks.contains(&HookType::PreToolUse));
356 assert!(!hooks.contains(&HookType::PostToolUse));
357 }
358
359 // --- hook_verbs ---
360

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
supported_hooksMethod · 0.45

Tested by

no test coverage detected