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