(repo: &TestRepository, message: &str)
| 383 | } |
| 384 | |
| 385 | fn record(repo: &TestRepository, message: &str) -> Hash { |
| 386 | let author = if message == "sibling_history_marker" { |
| 387 | "HiddenSiblingAuthor" |
| 388 | } else { |
| 389 | "VisibleBaseAuthor" |
| 390 | }; |
| 391 | *repo |
| 392 | .record( |
| 393 | ChangeHeader::builder() |
| 394 | .message(message) |
| 395 | .author(Author::new(author, None::<String>)) |
| 396 | .build(), |
| 397 | RecordOptions::new() |
| 398 | .with_all(true) |
| 399 | .save_to_store(true) |
| 400 | .apply_after_record(true), |
| 401 | ) |
| 402 | .unwrap() |
| 403 | .hash() |
| 404 | } |
| 405 | |
| 406 | fn fixture() -> (TempDir, TestRepository, Hash) { |
| 407 | let (temp, mut repo) = create_temp_repo(); |
no test coverage detected