()
| 364 | |
| 365 | #[test] |
| 366 | fn test_builder_pattern() { |
| 367 | let matcher = HookMatcher::tool("Write") |
| 368 | .with_path("*.env") |
| 369 | .with_session("secure-session"); |
| 370 | |
| 371 | assert_eq!(matcher.tool, Some("Write".to_string())); |
| 372 | assert_eq!(matcher.path_pattern, Some("*.env".to_string())); |
| 373 | assert_eq!(matcher.session_id, Some("secure-session".to_string())); |
| 374 | } |
| 375 | |
| 376 | #[test] |
| 377 | fn test_matcher_serialization() { |
nothing calls this directly
no test coverage detected