MCPcopy Create free account
hub / github.com/google/gapid / SetResult

Function SetResult

gapis/api/cmd.go:105–111  ·  view source on GitHub ↗

SetResult sets the commands result value to val.

(c Cmd, val interface{})

Source from the content-addressed store, hash-verified

103
104// SetResult sets the commands result value to val.
105func SetResult(c Cmd, val interface{}) error {
106 if p := c.CmdResult(); p != nil {
107 p.Set(val)
108 return nil
109 }
110 return ErrResultNotFound
111}

Callers

nothing calls this directly

Calls 2

CmdResultMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected