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

Function gen_ops

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

Source from the content-addressed store, hash-verified

623 }
624
625 fn gen_ops(pv: ProductValue) -> impl Strategy<Value = Ops<ProductValue>> {
626 (gen_table_id(), prop::collection::vec(Just(pv), 1..10)).prop_map(|(table_id, rowdata)| Ops {
627 table_id,
628 rowdata: rowdata.into(),
629 })
630 }
631
632 fn gen_mutations(pv: ProductValue) -> impl Strategy<Value = Mutations<ProductValue>> {
633 (

Callers 1

gen_mutationsFunction · 0.85

Calls 2

gen_table_idFunction · 0.85
vecFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…