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

Method Options

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

Source from the content-addressed store, hash-verified

197}
198
199func (a *ParameterAsserter) Options(expected ...string) *ParameterAsserter {
200 a.t.Helper()
201
202 p := a.find(a.Name)
203 if p == nil {
204 return a
205 }
206
207 optValues := slice.Convert(p.Options, func(p codersdk.PreviewParameterOption) string {
208 return p.Value.Value
209 })
210 assert.ElementsMatch(a.t, expected, optValues, "parameter %q options", a.Name)
211 return a
212}

Callers 1

NewOptionsFunction · 0.45

Calls 3

findMethod · 0.95
ConvertFunction · 0.92
HelperMethod · 0.65

Tested by

no test coverage detected