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

Method arbitrary

fendermint/vm/message/src/chain.rs:42–49  ·  view source on GitHub ↗
(g: &mut quickcheck::Gen)

Source from the content-addressed store, hash-verified

40
41 impl quickcheck::Arbitrary for ChainMessage {
42 fn arbitrary(g: &mut quickcheck::Gen) -> Self {
43 match u8::arbitrary(g) % 3 {
44 0 => ChainMessage::Signed(SignedMessage::arbitrary(g)),
45 1 => ChainMessage::Ipc(IpcMessage::arbitrary(g)),
46 // _ => ChainMessage::Cetf(CetfMessage::arbitrary(g)),
47 _ => todo!(),
48 }
49 }
50 }
51}
52

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected