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

Function test_push_builder_chain

atomic-cli/src/commands/push/command.rs:1253–1272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1251
1252 #[test]
1253 fn test_push_builder_chain() {
1254 let push = Push::new()
1255 .with_remote("upstream")
1256 .with_to_view("main")
1257 .with_from_view("feature")
1258 .with_dry_run(true)
1259 .with_force(true)
1260 .with_all(true)
1261 .with_insecure(true)
1262 .with_timeout(120);
1263
1264 assert_eq!(push.remote, Some("upstream".to_string()));
1265 assert_eq!(push.to_view, Some("main".to_string()));
1266 assert_eq!(push.from_view, Some("feature".to_string()));
1267 assert!(push.dry_run);
1268 assert!(push.force);
1269 assert!(push.all);
1270 assert!(push.insecure);
1271 assert_eq!(push.timeout, 120);
1272 }
1273
1274 #[test]
1275 fn test_push_clone() {

Callers

nothing calls this directly

Calls 8

with_timeoutMethod · 0.45
with_insecureMethod · 0.45
with_allMethod · 0.45
with_forceMethod · 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