From baf03356d681311942ec16ace4a49d8e20114457 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Wed, 11 Dec 2024 13:27:13 +0100 Subject: [PATCH] bin: Extend test fixtures --- bin/test.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/test.rs b/bin/test.rs index be392ccf..2fd1b0b2 100644 --- a/bin/test.rs +++ b/bin/test.rs @@ -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,