(expected ...string)
| 197 | } |
| 198 | |
| 199 | func (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 | } |
no test coverage detected