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

Method Value

coderd/coderdtest/dynamicparameters.go:187–197  ·  view source on GitHub ↗
(expected string)

Source from the content-addressed store, hash-verified

185}
186
187func (a *ParameterAsserter) Value(expected string) *ParameterAsserter {
188 a.t.Helper()
189
190 p := a.find(a.Name)
191 if p == nil {
192 return a
193 }
194
195 assert.Equal(a.t, expected, p.Value.Value)
196 return a
197}
198
199func (a *ParameterAsserter) Options(expected ...string) *ParameterAsserter {
200 a.t.Helper()

Callers 1

NewOptionsFunction · 0.45

Calls 3

findMethod · 0.95
HelperMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected