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

Source from the content-addressed store, hash-verified

904
905 #[test]
906 fn test_push_builder_chain() {
907 let push = Push::new()
908 .with_remote("upstream")
909 .with_to_view("main")
910 .with_from_view("feature")
911 .with_dry_run(true)
912 .with_force(false)
913 .with_all(true)
914 .with_insecure(true)
915 .with_timeout(120);
916
917 assert_eq!(push.remote.as_deref(), Some("upstream"));
918 assert_eq!(push.to_view, Some("main".to_string()));
919 assert_eq!(push.from_view, Some("feature".to_string()));
920 assert!(push.dry_run);
921 assert!(!push.force);
922 assert!(push.all);
923 assert!(push.insecure);
924 assert_eq!(push.timeout, 120);
925 }
926
927 #[test]
928 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