(g: &mut Gen)
| 29 | |
| 30 | impl 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 | |
| 39 | impl arbitrary::Arbitrary<'_> for ArbTokenAmount { |
nothing calls this directly
no outgoing calls
no test coverage detected