()
| 817 | |
| 818 | #[test] |
| 819 | fn test_supported_hooks() { |
| 820 | let hook = make_hook(); |
| 821 | let hooks = hook.supported_hooks(); |
| 822 | assert_eq!(hooks.len(), 5); |
| 823 | assert!(hooks.contains(&HookType::SessionStart)); |
| 824 | assert!(hooks.contains(&HookType::SessionEnd)); |
| 825 | assert!(hooks.contains(&HookType::TurnStart)); |
| 826 | assert!(hooks.contains(&HookType::TurnEnd)); |
| 827 | assert!(hooks.contains(&HookType::PostToolUse)); |
| 828 | } |
| 829 | |
| 830 | #[test] |
| 831 | fn test_hook_verbs() { |
nothing calls this directly
no test coverage detected