MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / gen_txdata

Function gen_txdata

crates/commitlog/src/payload/txdata.rs:645–656  ·  view source on GitHub ↗
(pv: ProductValue)

Source from the content-addressed store, hash-verified

643 }
644
645 fn gen_txdata(pv: ProductValue) -> impl Strategy<Value = Txdata<ProductValue>> {
646 (
647 prop::option::of(any::<Inputs>()),
648 prop::option::of(any::<Outputs>()),
649 prop::option::of(gen_mutations(pv)),
650 )
651 .prop_map(|(inputs, outputs, mutations)| Txdata {
652 inputs,
653 outputs,
654 mutations,
655 })
656 }
657
658 static SOME_PV: Lazy<ProductValue> = Lazy::new(|| product![42u64, "kermit", 4u32, 2u32, 18u32]);
659 static SOME_PV_TY: Lazy<ProductType> = Lazy::new(|| {

Callers

nothing calls this directly

Calls 1

gen_mutationsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…