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

Function test_builder_chaining

atomic-core/src/record/workflow/options.rs:484–501  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

482
483 #[test]
484 fn test_builder_chaining() {
485 let opts = WorkflowOptions::new()
486 .with_algorithm(Algorithm::Patience)
487 .with_check_mtime(false)
488 .with_detect_moves(false)
489 .with_prefix("src/")
490 .with_max_file_size(1024u64)
491 .with_force_rediff(true)
492 .with_ignore_missing(true);
493
494 assert_eq!(opts.algorithm(), Algorithm::Patience);
495 assert!(!opts.check_mtime());
496 assert!(!opts.detect_moves());
497 assert_eq!(opts.prefix(), "src/");
498 assert_eq!(opts.max_file_size(), Some(1024));
499 assert!(opts.force_rediff());
500 assert!(opts.ignore_missing());
501 }
502
503 // Helper Method Tests
504

Callers

nothing calls this directly

Calls 7

with_ignore_missingMethod · 0.80
with_force_rediffMethod · 0.45
with_max_file_sizeMethod · 0.45
with_prefixMethod · 0.45
with_detect_movesMethod · 0.45
with_check_mtimeMethod · 0.45
with_algorithmMethod · 0.45

Tested by

no test coverage detected