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

Method call_reducer_binary_result

crates/testing/src/modules.rs:101–109  ·  view source on GitHub ↗
(
        &self,
        reducer: &str,
        args: &sats::ProductValue,
    )

Source from the content-addressed store, hash-verified

99 }
100
101 pub async fn call_reducer_binary_result(
102 &self,
103 reducer: &str,
104 args: &sats::ProductValue,
105 ) -> anyhow::Result<ReducerCallResult> {
106 let args = bsatn::to_vec(&args).unwrap();
107 self.call_reducer_result(reducer, FunctionArgs::Bsatn(args.into()))
108 .await
109 }
110
111 pub async fn send(&self, message: impl Into<DataMessage>) -> anyhow::Result<()> {
112 let timer = Instant::now();

Callers 1

mainFunction · 0.80

Calls 3

to_vecFunction · 0.85
call_reducer_resultMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected