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

Source from the content-addressed store, hash-verified

1163 /// Test chaining multiple builder methods.
1164 #[test]
1165 fn test_pull_builder_chain() {
1166 let pull = Pull::new()
1167 .with_remote("upstream")
1168 .with_to_view("feature")
1169 .with_from_view("main")
1170 .with_dry_run(true)
1171 .with_all(true)
1172 .with_insecure(true)
1173 .with_timeout(120)
1174 .with_download_only(true);
1175
1176 assert_eq!(pull.remote.as_deref(), Some("upstream"));
1177 assert_eq!(pull.to_view, Some("feature".to_string()));
1178 assert_eq!(pull.from_view, Some("main".to_string()));
1179 assert!(pull.dry_run);
1180 assert!(pull.all);
1181 assert!(pull.insecure);
1182 assert_eq!(pull.timeout, 120);
1183 assert!(pull.download_only);
1184 }
1185
1186 /// Test Pull can be cloned.
1187 #[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