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

Function gen_mutations

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

Source from the content-addressed store, hash-verified

630 }
631
632 fn gen_mutations(pv: ProductValue) -> impl Strategy<Value = Mutations<ProductValue>> {
633 (
634 prop::collection::vec(gen_ops(pv.clone()), 0..10),
635 prop::collection::vec(gen_ops(pv.clone()), 0..10),
636 prop::collection::vec(gen_table_id(), 0..10),
637 )
638 .prop_map(|(inserts, deletes, truncates)| Mutations {
639 inserts: inserts.into(),
640 deletes: deletes.into(),
641 truncates: truncates.into(),
642 })
643 }
644
645 fn gen_txdata(pv: ProductValue) -> impl Strategy<Value = Txdata<ProductValue>> {
646 (

Callers 1

gen_txdataFunction · 0.85

Calls 4

vecFunction · 0.85
gen_opsFunction · 0.85
gen_table_idFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…