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

Method GetAPIKeyByID

coderd/database/dbmock/dbmock.go:1955–1961  ·  view source on GitHub ↗

GetAPIKeyByID mocks base method.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

1953
1954// GetAPIKeyByID mocks base method.
1955func (m *MockStore) GetAPIKeyByID(ctx context.Context, id string) (database.APIKey, error) {
1956 m.ctrl.T.Helper()
1957 ret := m.ctrl.Call(m, "GetAPIKeyByID", ctx, id)
1958 ret0, _ := ret[0].(database.APIKey)
1959 ret1, _ := ret[1].(error)
1960 return ret0, ret1
1961}
1962
1963// GetAPIKeyByID indicates an expected call of GetAPIKeyByID.
1964func (mr *MockStoreMockRecorder) GetAPIKeyByID(ctx, id any) *gomock.Call {

Callers 1

TestAPIKeyFunction · 0.95

Calls 2

CallMethod · 0.80
HelperMethod · 0.65

Tested by 1

TestAPIKeyFunction · 0.76