Helper to record a change with a message.
(repo: &Repository, message: &str)
| 58 | |
| 59 | /// Helper to record a change with a message. |
| 60 | fn record_change(repo: &Repository, message: &str) -> Hash { |
| 61 | let header = ChangeHeader::builder() |
| 62 | .message(message) |
| 63 | .author(Author::new("Test", Some("test@example.com"))) |
| 64 | .build(); |
| 65 | |
| 66 | let outcome = repo |
| 67 | .record(header, RecordOptions::default()) |
| 68 | .expect("Failed to record"); |
| 69 | |
| 70 | *outcome.hash() |
| 71 | } |
| 72 | |
| 73 | // StateBeforeChange Tests |
| 74 |
no test coverage detected