MCPcopy Index your code
hub / github.com/coder/coder / find

Method find

coderd/coderdtest/dynamicparameters.go:153–163  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

151}
152
153func (a *ParameterAsserter) find(name string) *codersdk.PreviewParameter {
154 a.t.Helper()
155 for _, p := range a.Params {
156 if p.Name == name {
157 return &p
158 }
159 }
160
161 assert.Fail(a.t, "parameter not found", "expected parameter %q to exist", a.Name)
162 return nil
163}
164
165func (a *ParameterAsserter) NotExists() *ParameterAsserter {
166 a.t.Helper()

Callers 15

ValueMethod · 0.95
OptionsMethod · 0.95
getDisplayLatencyFunction · 0.80
AgentDevcontainerCardFunction · 0.80
AgentRowFunction · 0.80
ParameterLabelFunction · 0.80
parameterErrorFunction · 0.80

Calls 2

HelperMethod · 0.65
FailMethod · 0.45

Tested by 3

requireMessageFunction · 0.64
readTitleFunction · 0.64