()
| 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() { |
nothing calls this directly
no test coverage detected