MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / MockUsersClient

Struct MockUsersClient

lib/gh/get_current_user_test.go:28–31  ·  view source on GitHub ↗

MockUsersClient is a mock implementation of the UsersClient interface.

Source from the content-addressed store, hash-verified

26
27// MockUsersClient is a mock implementation of the UsersClient interface.
28type MockUsersClient struct {
29 GetFunc func(ctx context.Context, user string) (*github.User, *github.Response, error)
30 ListEmailsFunc func(ctx context.Context, opts *github.ListOptions) ([]*github.UserEmail, *github.Response, error)
31}
32
33func (m *MockUsersClient) Get(ctx context.Context, user string) (*github.User, *github.Response, error) {
34 if m.GetFunc == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected