mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-29 14:30:31 +08:00
bin: Extend test fixtures
This commit is contained in:
+6
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user