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

Function test_supported_hooks

atomic-agent/src/hooks/copilot.rs:518–529  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

516
517 #[test]
518 fn test_supported_hooks() {
519 let hook = make_hook();
520 let hooks = hook.supported_hooks();
521 assert_eq!(hooks.len(), 5);
522 assert!(hooks.contains(&HookType::SessionStart));
523 assert!(hooks.contains(&HookType::SessionEnd));
524 assert!(hooks.contains(&HookType::TurnStart));
525 assert!(hooks.contains(&HookType::PreToolUse));
526 assert!(hooks.contains(&HookType::PostToolUse));
527 // No TurnEnd for Copilot
528 assert!(!hooks.contains(&HookType::TurnEnd));
529 }
530
531 #[test]
532 fn test_supported_hooks_count() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
supported_hooksMethod · 0.45

Tested by

no test coverage detected