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

Function keyIDs

coderd/ai_providers_test.go:25–31  ·  view source on GitHub ↗

keyIDs extracts the IDs from a slice of AIProviderKey responses, in order, to make assertions on key-set membership easier to read.

(keys []codersdk.AIProviderKey)

Source from the content-addressed store, hash-verified

23// keyIDs extracts the IDs from a slice of AIProviderKey responses, in
24// order, to make assertions on key-set membership easier to read.
25func keyIDs(keys []codersdk.AIProviderKey) []uuid.UUID {
26 out := make([]uuid.UUID, len(keys))
27 for i, k := range keys {
28 out[i] = k.ID
29 }
30 return out
31}
32
33func TestAIProvidersCRUD(t *testing.T) {
34 t.Parallel()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected