()
| 454 | |
| 455 | #[test] |
| 456 | fn test_supported_hooks_and_verbs() { |
| 457 | let hook = make_hook(); |
| 458 | assert_eq!(hook.supported_hooks().len(), 6); |
| 459 | assert_eq!(hook.hook_verbs().len(), 6); |
| 460 | assert!(hook.hook_verbs().contains(&"session-start")); |
| 461 | assert!(hook.hook_verbs().contains(&"session-end")); |
| 462 | assert!(hook.hook_verbs().contains(&"user-prompt-submit")); |
| 463 | assert!(hook.hook_verbs().contains(&"stop")); |
| 464 | assert!(hook.hook_verbs().contains(&"pre-tool")); |
| 465 | assert!(hook.hook_verbs().contains(&"post-tool")); |
| 466 | } |
| 467 | |
| 468 | #[test] |
| 469 | fn test_parse_session_start_camel_case() { |
nothing calls this directly
no test coverage detected