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

Function TestParseStringSliceClaimReference

coderd/idpsync/idpsync_test.go:182–191  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

180}
181
182func TestParseStringSliceClaimReference(t *testing.T) {
183 t.Parallel()
184
185 var val any = []string{"a", "b", "c"}
186 parsed, err := idpsync.ParseStringSliceClaim(val)
187 require.NoError(t, err)
188
189 parsed[0] = ""
190 require.Equal(t, "a", val.([]string)[0], "should not modify original value")
191}
192
193func TestIsHTTPError(t *testing.T) {
194 t.Parallel()

Callers

nothing calls this directly

Calls 2

ParseStringSliceClaimFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected