MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / Call

Method Call

server/server_test.go:219–232  ·  view source on GitHub ↗
(e contube.Record)

Source from the content-addressed store, hash-verified

217}
218
219func (r *MockRuntime) Call(e contube.Record) (contube.Record, error) {
220 v, err := r.funcCtx.GetState("key")
221 if err != nil {
222 return nil, err
223 }
224 str := string(v)
225 err = r.funcCtx.PutState("key", []byte(str+"!"))
226 if err != nil {
227 return nil, err
228 }
229 return contube.NewRecordImpl(nil, func() {
230
231 }), nil
232}
233
234func (r *MockRuntime) Stop() {
235}

Callers

nothing calls this directly

Calls 3

NewRecordImplFunction · 0.92
GetStateMethod · 0.65
PutStateMethod · 0.65

Tested by

no test coverage detected