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

Function GetParameter

gapis/api/cmd.go:80–85  ·  view source on GitHub ↗

GetParameter returns the parameter value with the specified name.

(c Cmd, name string)

Source from the content-addressed store, hash-verified

78
79// GetParameter returns the parameter value with the specified name.
80func GetParameter(c Cmd, name string) (interface{}, error) {
81 if p := c.CmdParams().Find(name); p != nil {
82 return p.Get(), nil
83 }
84 return nil, ErrParameterNotFound
85}
86
87// SetParameter sets the parameter with the specified name with val.
88func SetParameter(c Cmd, name string, val interface{}) error {

Callers

nothing calls this directly

Calls 3

FindMethod · 0.65
CmdParamsMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected