()
| 433 | |
| 434 | #[test] |
| 435 | fn test_config_builders() { |
| 436 | let config = RipgrepContextConfig::new("/tmp") |
| 437 | .with_include_patterns(vec!["**/*.rs".to_string()]) |
| 438 | .with_exclude_patterns(vec!["**/test/**".to_string()]) |
| 439 | .with_max_file_size(2048) |
| 440 | .with_case_insensitive(false) |
| 441 | .with_context_lines(5); |
| 442 | |
| 443 | assert_eq!(config.include_patterns, vec!["**/*.rs"]); |
| 444 | assert_eq!(config.exclude_patterns, vec!["**/test/**"]); |
| 445 | assert_eq!(config.max_file_size, 2048); |
| 446 | assert!(!config.case_insensitive); |
| 447 | assert_eq!(config.context_lines, 5); |
| 448 | } |
| 449 | |
| 450 | #[tokio::test] |
| 451 | async fn test_provider_search() { |
nothing calls this directly
no test coverage detected