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

Function test_unrecord_options_builder

atomic-repository/src/unrecord.rs:731–744  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

729
730 #[test]
731 fn test_unrecord_options_builder() {
732 let options = UnrecordOptions::new()
733 .view("feature")
734 .cascade(true)
735 .update_working_copy(false)
736 .max_cascade(50)
737 .keep_change(false);
738
739 assert_eq!(options.view, Some("feature".to_string()));
740 assert!(options.cascade);
741 assert!(!options.update_working_copy);
742 assert_eq!(options.max_cascade, Some(50));
743 assert!(!options.keep_change);
744 }
745
746 #[test]
747 fn test_unrecord_options_dry_run() {

Callers

nothing calls this directly

Calls 5

keep_changeMethod · 0.80
max_cascadeMethod · 0.80
update_working_copyMethod · 0.80
cascadeMethod · 0.80
viewMethod · 0.45

Tested by

no test coverage detected