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