bin: Extend test fixtures

This commit is contained in:
Erik Kundt
2024-12-11 13:27:13 +01:00
parent bb30b21cd5
commit baf03356d6
+6 -1
View File
@@ -10,11 +10,16 @@ pub mod fixtures {
NodeWithRepo::default()
}
pub fn branch(node: &NodeWithRepo) -> BranchWith {
pub fn branch_with_eof_removed(node: &NodeWithRepo) -> BranchWith {
let checkout = node.repo.checkout();
checkout.branch_with([("README", b"Hello World!")])
}
pub fn branch_with_line_added(node: &NodeWithRepo) -> BranchWith {
let checkout = node.repo.checkout();
checkout.branch_with([("README", b"Hello World!\nHello World!\n")])
}
pub fn patch<'a, 'g>(
node: &'a NodeWithRepo,
branch: &BranchWith,