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:876–895  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

874 /// Test chaining multiple builder methods.
875 #[test]
876 fn test_pull_builder_chain() {
877 let pull = Pull::new()
878 .with_remote("upstream")
879 .with_to_view("feature")
880 .with_from_view("main")
881 .with_dry_run(true)
882 .with_all(true)
883 .with_insecure(true)
884 .with_timeout(120)
885 .with_download_only(true);
886
887 assert_eq!(pull.remote.as_deref(), Some("upstream"));
888 assert_eq!(pull.to_view, Some("feature".to_string()));
889 assert_eq!(pull.from_view, Some("main".to_string()));
890 assert!(pull.dry_run);
891 assert!(pull.all);
892 assert!(pull.insecure);
893 assert_eq!(pull.timeout, 120);
894 assert!(pull.download_only);
895 }
896
897 /// Test Pull can be cloned.
898 #[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