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

Function test_supported_hooks

atomic-agent/src/hooks/kilo.rs:477–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

475
476 #[test]
477 fn test_supported_hooks() {
478 let hook = make_hook();
479 let hooks = hook.supported_hooks();
480 assert_eq!(hooks.len(), 6);
481 assert!(hooks.contains(&HookType::SessionStart));
482 assert!(hooks.contains(&HookType::SessionEnd));
483 assert!(hooks.contains(&HookType::TurnStart));
484 assert!(hooks.contains(&HookType::TurnEnd));
485 assert!(hooks.contains(&HookType::PreToolUse));
486 assert!(hooks.contains(&HookType::PostToolUse));
487 }
488
489 #[test]
490 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