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

Source from the content-addressed store, hash-verified

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