Documentation ¶
Index ¶
- type MockClient
- func (m MockClient) ListRepoAlerts(_ context.Context, owner string, repo string, opt *github.AlertListOptions) ([]*github.Alert, *github.Response, error)
- func (m MockClient) ListRepoDependabotAlerts(_ context.Context, owner string, repo string, opt *github.ListAlertsOptions) ([]*github.DependabotAlert, *github.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct { ListRepoAlertsCallback func(string, string, *github.AlertListOptions) ([]*github.Alert, *github.Response, error) ListRepoDependabotAlertsCallback func(string, string, *github.ListAlertsOptions) ([]*github.DependabotAlert, *github.Response, error) }
MockClient mocks the two methods of google's github client we use
func (MockClient) ListRepoAlerts ¶
func (m MockClient) ListRepoAlerts(_ context.Context, owner string, repo string, opt *github.AlertListOptions) ([]*github.Alert, *github.Response, error)
ListRepoAlerts calls the mocked callback
func (MockClient) ListRepoDependabotAlerts ¶
func (m MockClient) ListRepoDependabotAlerts(_ context.Context, owner string, repo string, opt *github.ListAlertsOptions) ([]*github.DependabotAlert, *github.Response, error)
ListRepoDependabotAlerts calls the mocked callback
Click to show internal directories.
Click to hide internal directories.