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

Method arbitrary

fendermint/vm/message/src/query.rs:162–170  ·  view source on GitHub ↗
(g: &mut quickcheck::Gen)

Source from the content-addressed store, hash-verified

160
161 impl quickcheck::Arbitrary for FvmQuery {
162 fn arbitrary(g: &mut quickcheck::Gen) -> Self {
163 match u8::arbitrary(g) % 5 {
164 0 => FvmQuery::Ipld(ArbCid::arbitrary(g).0),
165 1 => FvmQuery::ActorState(ArbAddress::arbitrary(g).0),
166 2 => FvmQuery::Call(Box::new(SignedMessage::arbitrary(g).into_message())),
167 3 => FvmQuery::EstimateGas(Box::new(SignedMessage::arbitrary(g).into_message())),
168 _ => FvmQuery::StateParams,
169 }
170 }
171 }
172
173 impl quickcheck::Arbitrary for ActorState {

Callers

nothing calls this directly

Calls 2

ActorStateClass · 0.85
into_messageMethod · 0.45

Tested by

no test coverage detected