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

Function test_supported_hooks

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

Source from the content-addressed store, hash-verified

521
522 #[test]
523 fn test_supported_hooks() {
524 let hook = make_hook();
525 let hooks = hook.supported_hooks();
526 assert_eq!(hooks.len(), 5);
527 assert!(hooks.contains(&HookType::SessionStart));
528 assert!(hooks.contains(&HookType::SessionEnd));
529 assert!(hooks.contains(&HookType::TurnStart));
530 assert!(hooks.contains(&HookType::PreToolUse));
531 assert!(hooks.contains(&HookType::PostToolUse));
532 // No TurnEnd for Copilot
533 assert!(!hooks.contains(&HookType::TurnEnd));
534 }
535
536 #[test]
537 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