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

Function requireHasInterceptions

enterprise/cli/aibridge_test.go:265–274  ·  view source on GitHub ↗
(t *testing.T, out []byte, ids []uuid.UUID)

Source from the content-addressed store, hash-verified

263}
264
265func requireHasInterceptions(t *testing.T, out []byte, ids []uuid.UUID) {
266 t.Helper()
267
268 var results []codersdk.AIBridgeInterception
269 require.NoError(t, json.Unmarshal(out, &results))
270 require.Len(t, results, len(ids))
271 for i, id := range ids {
272 require.Equal(t, id, results[i].ID)
273 }
274}

Callers 1

Calls 4

HelperMethod · 0.65
UnmarshalMethod · 0.45
LenMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected