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

Source from the content-addressed store, hash-verified

1013
1014 #[test]
1015 fn test_push_builder_chain() {
1016 let push = Push::new()
1017 .with_remote("upstream")
1018 .with_to_view("main")
1019 .with_from_view("feature")
1020 .with_dry_run(true)
1021 .with_force(true)
1022 .with_all(true)
1023 .with_insecure(true)
1024 .with_timeout(120);
1025
1026 assert_eq!(push.remote, Some("upstream".to_string()));
1027 assert_eq!(push.to_view, Some("main".to_string()));
1028 assert_eq!(push.from_view, Some("feature".to_string()));
1029 assert!(push.dry_run);
1030 assert!(push.force);
1031 assert!(push.all);
1032 assert!(push.insecure);
1033 assert_eq!(push.timeout, 120);
1034 }
1035
1036 #[test]
1037 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