()
| 483 | |
| 484 | #[test] |
| 485 | fn test_builder_chaining() { |
| 486 | let now = SystemTime::now(); |
| 487 | let opts = OutputOptions::new() |
| 488 | .with_prefix("src/") |
| 489 | .output_name_conflicts(false) |
| 490 | .if_modified_since(Some(now)) |
| 491 | .include_deleted(true) |
| 492 | .max_vertices(50_000) |
| 493 | .salt(123); |
| 494 | |
| 495 | assert_eq!(opts.prefix, "src/"); |
| 496 | assert!(!opts.output_name_conflicts); |
| 497 | assert_eq!(opts.if_modified_since, Some(now)); |
| 498 | assert!(opts.include_deleted); |
| 499 | assert_eq!(opts.max_vertices, Some(50_000)); |
| 500 | assert_eq!(opts.salt, 123); |
| 501 | } |
| 502 | |
| 503 | // ------------------------------------------------------------------------ |
| 504 | // matches_prefix Tests |
nothing calls this directly
no test coverage detected