MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / arbitrary

Method arbitrary

fendermint/testing/src/arb/token.rs:31–36  ·  view source on GitHub ↗
(g: &mut Gen)

Source from the content-addressed store, hash-verified

29
30impl quickcheck::Arbitrary for ArbTokenAmount {
31 fn arbitrary(g: &mut Gen) -> Self {
32 let tokens = TokenAmount::arbitrary(g);
33 let atto = tokens.atto();
34 let atto = atto.mod_floor(&MAX_ATTO);
35 Self(TokenAmount::from_atto(atto))
36 }
37}
38
39impl arbitrary::Arbitrary<'_> for ArbTokenAmount {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected