MockUsersClient is a mock implementation of the UsersClient interface.
| 26 | |
| 27 | // MockUsersClient is a mock implementation of the UsersClient interface. |
| 28 | type 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 | |
| 33 | func (m *MockUsersClient) Get(ctx context.Context, user string) (*github.User, *github.Response, error) { |
| 34 | if m.GetFunc == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected