MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_push_with_message

Function test_push_with_message

atomic-cli/src/commands/git/push.rs:1012–1025  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1010
1011 #[test]
1012 fn test_push_with_message() {
1013 let push = Push {
1014 message: Some("custom message".to_string()),
1015 no_push: true,
1016 remote: "upstream".to_string(),
1017 branch: Some("pr-branch".to_string()),
1018 allow_conflict_markers: false,
1019 allow_conflicts: false,
1020 };
1021 assert_eq!(push.message.as_deref(), Some("custom message"));
1022 assert!(push.no_push);
1023 assert_eq!(push.remote, "upstream");
1024 assert_eq!(push.branch.as_deref(), Some("pr-branch"));
1025 }
1026
1027 #[test]
1028 fn test_push_branch_flag() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected