Radish alpha
r
rad:z39mP9rQAaGmERfUMPULfPUi473tY
Radicle terminal user interface
Radicle
Git
bin: Extend test fixtures
Erik Kundt committed 1 year ago
commit baf03356d681311942ec16ace4a49d8e20114457
parent bb30b21
1 file changed +6 -1
modified 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,