MCPcopy Create free account
hub / github.com/chanced/jsonptr / arbitrary

Method arbitrary

src/arbitrary.rs:6–8  ·  view source on GitHub ↗
(g: &mut quickcheck::Gen)

Source from the content-addressed store, hash-verified

4
5impl Arbitrary for Token<'static> {
6 fn arbitrary(g: &mut quickcheck::Gen) -> Self {
7 Self::new(String::arbitrary(g))
8 }
9
10 fn shrink(&self) -> Box<dyn Iterator<Item = Self>> {
11 Box::new(self.decoded().into_owned().shrink().map(Self::new))

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
from_tokensFunction · 0.85

Tested by

no test coverage detected