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

Source from the content-addressed store, hash-verified

1002
1003 #[test]
1004 fn test_push_builder_chain() {
1005 let push = Push::new()
1006 .with_remote("upstream")
1007 .with_to_view("main")
1008 .with_from_view("feature")
1009 .with_dry_run(true)
1010 .with_force(true)
1011 .with_all(true)
1012 .with_insecure(true)
1013 .with_timeout(120);
1014
1015 assert_eq!(push.remote, Some("upstream".to_string()));
1016 assert_eq!(push.to_view, Some("main".to_string()));
1017 assert_eq!(push.from_view, Some("feature".to_string()));
1018 assert!(push.dry_run);
1019 assert!(push.force);
1020 assert!(push.all);
1021 assert!(push.insecure);
1022 assert_eq!(push.timeout, 120);
1023 }
1024
1025 #[test]
1026 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