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

Source from the content-addressed store, hash-verified

1109
1110 #[test]
1111 fn test_push_builder_chain() {
1112 let push = Push::new()
1113 .with_remote("upstream")
1114 .with_to_view("main")
1115 .with_from_view("feature")
1116 .with_dry_run(true)
1117 .with_force(true)
1118 .with_all(true)
1119 .with_insecure(true)
1120 .with_timeout(120);
1121
1122 assert_eq!(push.remote, Some("upstream".to_string()));
1123 assert_eq!(push.to_view, Some("main".to_string()));
1124 assert_eq!(push.from_view, Some("feature".to_string()));
1125 assert!(push.dry_run);
1126 assert!(push.force);
1127 assert!(push.all);
1128 assert!(push.insecure);
1129 assert_eq!(push.timeout, 120);
1130 }
1131
1132 #[test]
1133 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