| 4268 | } |
| 4269 | |
| 4270 | fn self_push_commit(view: &str, state_b32: &str) -> ParsedCommit { |
| 4271 | ParsedCommit { |
| 4272 | git_sha: "aabbccdd11223344".to_string(), |
| 4273 | short_sha: "aabbccdd".to_string(), |
| 4274 | metadata: CommitMetadata { |
| 4275 | author_name: "Test".to_string(), |
| 4276 | author_email: None, |
| 4277 | timestamp: Utc::now(), |
| 4278 | message: "feat: test".to_string(), |
| 4279 | description: None, |
| 4280 | }, |
| 4281 | files: Vec::new(), |
| 4282 | parent_index: None, |
| 4283 | is_merge: false, |
| 4284 | is_empty: true, |
| 4285 | push_trailer: parse_push_trailer(&format!( |
| 4286 | "feat: test\n\nAtomic-View: {}\nAtomic-State: {}", |
| 4287 | view, state_b32 |
| 4288 | )), |
| 4289 | } |
| 4290 | } |
| 4291 | |
| 4292 | #[test] |
| 4293 | fn test_should_skip_self_push() { |