Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
protocol/fetcher: Delete unused file
Lorenz Leutgeb committed 2 months ago
commit 56ee626a51a4ffe14bbbdb6763f29e8e5d58449c
parent 41f77a495b953bbf9b7dbad63ab8e6750505f846
1 file changed +0 -52
deleted crates/radicle-protocol/src/fetcher/test/arbitrary.rs
@@ -1,52 +0,0 @@
-
use std::collections::HashSet;
-

-
use radicle::{identity::DocAt, test::arbitrary};
-

-
use crate::fetcher::{commands, Command, Fetched};
-

-
impl qcheck::Arbitrary for Fetched {
-
    fn arbitrary(g: &mut qcheck::Gen) -> Self {
-
        Fetched {
-
            updated: vec![],
-
            namespaces: HashSet::arbitrary(g),
-
            clone: bool::arbitrary(g),
-
            doc: DocAt::arbitrary(g),
-
        }
-
    }
-
}
-

-
impl qcheck::Arbitrary for Command {
-
    fn arbitrary(g: &mut qcheck::Gen) -> Self {
-
        todo!()
-
    }
-
}
-

-
impl qcheck::Arbitrary for commands::Fetch {
-
    fn arbitrary(g: &mut qcheck::Gen) -> Self {
-
        todo!()
-
    }
-
}
-

-
impl qcheck::Arbitrary for commands::Fetched {
-
    fn arbitrary(g: &mut qcheck::Gen) -> Self {
-
        g.choose(&[
-
            commands::Fetched::DequeueFetches,
-
            commands::Fetched::Fetched {
-
                from: arbitrary::gen(g.size()),
-
                rid: arbitrary::gen(g.size()),
-
            },
-
        ])
-
        .cloned()
-
        .unwrap()
-
    }
-
}
-

-
impl qcheck::Arbitrary for commands::Dequeue {
-
    fn arbitrary(g: &mut qcheck::Gen) -> Self {
-
        g.choose(&[commands::Dequeue::Nodes {
-
            nodes: arbitrary::gen(5),
-
        }])
-
        .cloned()
-
        .unwrap()
-
    }
-
}