mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 18:40:39 +08:00
protocol/fetcher: Delete unused file
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user