| 4667 | } |
| 4668 | |
| 4669 | fn self_push_commit(view: &str, state_b32: &str) -> ParsedCommit { |
| 4670 | ParsedCommit { |
| 4671 | git_sha: "aabbccdd11223344".to_string(), |
| 4672 | short_sha: "aabbccdd".to_string(), |
| 4673 | metadata: CommitMetadata { |
| 4674 | author_name: "Test".to_string(), |
| 4675 | author_email: None, |
| 4676 | timestamp: Utc::now(), |
| 4677 | message: "feat: test".to_string(), |
| 4678 | description: None, |
| 4679 | }, |
| 4680 | files: Vec::new(), |
| 4681 | parent_index: None, |
| 4682 | is_merge: false, |
| 4683 | is_empty: true, |
| 4684 | push_trailer: parse_push_trailer(&format!( |
| 4685 | "feat: test\n\nAtomic-View: {}\nAtomic-State: {}", |
| 4686 | view, state_b32 |
| 4687 | )), |
| 4688 | } |
| 4689 | } |
| 4690 | |
| 4691 | #[test] |
| 4692 | fn test_should_skip_self_push() { |