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

Function test_supported_hooks

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

Source from the content-addressed store, hash-verified

440
441 #[test]
442 fn test_supported_hooks() {
443 let hooks = make_hook().supported_hooks();
444 assert!(hooks.contains(&HookType::SessionStart));
445 assert!(hooks.contains(&HookType::SessionEnd));
446 assert!(hooks.contains(&HookType::TurnStart));
447 assert!(hooks.contains(&HookType::TurnEnd));
448 // Tool-use hooks are NOT in supported list
449 assert!(!hooks.contains(&HookType::PreToolUse));
450 assert!(!hooks.contains(&HookType::PostToolUse));
451 }
452
453 // --- hook_verbs ---
454

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
supported_hooksMethod · 0.45

Tested by

no test coverage detected