(e contube.Record)
| 217 | } |
| 218 | |
| 219 | func (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 | |
| 234 | func (r *MockRuntime) Stop() { |
| 235 | } |
nothing calls this directly
no test coverage detected