MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_builder_chaining

Function test_builder_chaining

atomic-core/src/output/repo/options.rs:485–501  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

saltMethod · 0.45
max_verticesMethod · 0.45
include_deletedMethod · 0.45
if_modified_sinceMethod · 0.45
output_name_conflictsMethod · 0.45
with_prefixMethod · 0.45

Tested by

no test coverage detected