MCPcopy
hub / github.com/semaphoreui/semaphore / mockAccessKeyRepo

Struct mockAccessKeyRepo

api/projects/environment_test.go:10–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8)
9
10type mockAccessKeyRepo struct {
11 keys map[int]db.AccessKey
12}
13
14func (m *mockAccessKeyRepo) GetAccessKey(_ int, keyID int) (db.AccessKey, error) {
15 key, ok := m.keys[keyID]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected