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

Source from the content-addressed store, hash-verified

880
881 #[test]
882 fn test_push_builder_chain() {
883 let push = Push::new()
884 .with_remote("upstream")
885 .with_to_view("main")
886 .with_from_view("feature")
887 .with_dry_run(true)
888 .with_force(false)
889 .with_all(true)
890 .with_insecure(true)
891 .with_timeout(120);
892
893 assert_eq!(push.remote, "upstream");
894 assert_eq!(push.to_view, Some("main".to_string()));
895 assert_eq!(push.from_view, Some("feature".to_string()));
896 assert!(push.dry_run);
897 assert!(!push.force);
898 assert!(push.all);
899 assert!(push.insecure);
900 assert_eq!(push.timeout, 120);
901 }
902
903 #[test]
904 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