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

Function test_pull_builder_chain

atomic-cli/src/commands/pull/command.rs:853–872  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

851 /// Test chaining multiple builder methods.
852 #[test]
853 fn test_pull_builder_chain() {
854 let pull = Pull::new()
855 .with_remote("upstream")
856 .with_to_view("feature")
857 .with_from_view("main")
858 .with_dry_run(true)
859 .with_all(true)
860 .with_insecure(true)
861 .with_timeout(120)
862 .with_download_only(true);
863
864 assert_eq!(pull.remote, "upstream");
865 assert_eq!(pull.to_view, Some("feature".to_string()));
866 assert_eq!(pull.from_view, Some("main".to_string()));
867 assert!(pull.dry_run);
868 assert!(pull.all);
869 assert!(pull.insecure);
870 assert_eq!(pull.timeout, 120);
871 assert!(pull.download_only);
872 }
873
874 /// Test Pull can be cloned.
875 #[test]

Callers

nothing calls this directly

Calls 8

with_download_onlyMethod · 0.45
with_timeoutMethod · 0.45
with_insecureMethod · 0.45
with_allMethod · 0.45
with_dry_runMethod · 0.45
with_from_viewMethod · 0.45
with_to_viewMethod · 0.45
with_remoteMethod · 0.45

Tested by

no test coverage detected