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

Function test_supported_hooks

atomic-agent/src/hooks/kiro.rs:480–491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

478
479 #[test]
480 fn test_supported_hooks() {
481 let hook = make_hook();
482 let hooks = hook.supported_hooks();
483 assert_eq!(hooks.len(), 4);
484 assert!(hooks.contains(&HookType::TurnStart));
485 assert!(hooks.contains(&HookType::TurnEnd));
486 assert!(hooks.contains(&HookType::PreToolUse));
487 assert!(hooks.contains(&HookType::PostToolUse));
488 // Kiro doesn't have native SessionStart/SessionEnd
489 assert!(!hooks.contains(&HookType::SessionStart));
490 assert!(!hooks.contains(&HookType::SessionEnd));
491 }
492
493 // --- hook_verbs ---
494

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
supported_hooksMethod · 0.45

Tested by

no test coverage detected