Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
bin: Extend test fixtures
Erik Kundt committed 1 year ago
commit baf03356d681311942ec16ace4a49d8e20114457
parent bb30b21cd5e2b6e52d78286555f7a743c10db5a4
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,