Documentation ¶
Overview ¶
This file was generated by counterfeiter
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter
Index ¶
- type FakeAddressBook
- func (fake *FakeAddressBook) AddressForRepo(ctx context.Context, logger lager.Logger, owner string, name string) []notifications.Address
- func (fake *FakeAddressBook) AddressForRepoArgsForCall(i int) (context.Context, lager.Logger, string, string)
- func (fake *FakeAddressBook) AddressForRepoCallCount() int
- func (fake *FakeAddressBook) AddressForRepoReturns(result1 []notifications.Address)
- func (fake *FakeAddressBook) AddressForRepoReturnsOnCall(i int, result1 []notifications.Address)
- func (fake *FakeAddressBook) Invocations() map[string][][]interface{}
- type FakeHTTPClient
- func (fake *FakeHTTPClient) Do(r *http.Request) (*http.Response, error)
- func (fake *FakeHTTPClient) DoArgsForCall(i int) *http.Request
- func (fake *FakeHTTPClient) DoCallCount() int
- func (fake *FakeHTTPClient) DoReturns(result1 *http.Response, result2 error)
- func (fake *FakeHTTPClient) DoReturnsOnCall(i int, result1 *http.Response, result2 error)
- func (fake *FakeHTTPClient) Invocations() map[string][][]interface{}
- type FakeNotifier
- func (fake *FakeNotifier) Invocations() map[string][][]interface{}
- func (fake *FakeNotifier) Send(arg1 lager.Logger, arg2 notifications.Envelope) error
- func (fake *FakeNotifier) SendArgsForCall(i int) (lager.Logger, notifications.Envelope)
- func (fake *FakeNotifier) SendCallCount() int
- func (fake *FakeNotifier) SendReturns(result1 error)
- func (fake *FakeNotifier) SendReturnsOnCall(i int, result1 error)
- type FakeRolodexClient
- func (fake *FakeRolodexClient) GetOwners(ctx netcontext.Context, in *rolodexpb.GetOwnersRequest, ...) (*rolodexpb.GetOwnersResponse, error)
- func (fake *FakeRolodexClient) GetOwnersArgsForCall(i int) (netcontext.Context, *rolodexpb.GetOwnersRequest, []grpc.CallOption)
- func (fake *FakeRolodexClient) GetOwnersCallCount() int
- func (fake *FakeRolodexClient) GetOwnersReturns(result1 *rolodexpb.GetOwnersResponse, result2 error)
- func (fake *FakeRolodexClient) GetOwnersReturnsOnCall(i int, result1 *rolodexpb.GetOwnersResponse, result2 error)
- func (fake *FakeRolodexClient) Invocations() map[string][][]interface{}
- type FakeRouter
- func (fake *FakeRouter) Deliver(ctx context.Context, logger lager.Logger, batch []notifications.Notification) error
- func (fake *FakeRouter) DeliverArgsForCall(i int) (context.Context, lager.Logger, []notifications.Notification)
- func (fake *FakeRouter) DeliverCallCount() int
- func (fake *FakeRouter) DeliverReturns(result1 error)
- func (fake *FakeRouter) DeliverReturnsOnCall(i int, result1 error)
- func (fake *FakeRouter) Invocations() map[string][][]interface{}
- type FakeSlackNotificationFormatter
- func (fake *FakeSlackNotificationFormatter) FormatNotifications(batch []notifications.Notification) []notifications.SlackMessage
- func (fake *FakeSlackNotificationFormatter) FormatNotificationsArgsForCall(i int) []notifications.Notification
- func (fake *FakeSlackNotificationFormatter) FormatNotificationsCallCount() int
- func (fake *FakeSlackNotificationFormatter) FormatNotificationsReturns(result1 []notifications.SlackMessage)
- func (fake *FakeSlackNotificationFormatter) FormatNotificationsReturnsOnCall(i int, result1 []notifications.SlackMessage)
- func (fake *FakeSlackNotificationFormatter) Invocations() map[string][][]interface{}
- type FakeWhitelist
- func (fake *FakeWhitelist) Invocations() map[string][][]interface{}
- func (fake *FakeWhitelist) ShouldSkipNotification(arg1 bool, arg2 string) bool
- func (fake *FakeWhitelist) ShouldSkipNotificationArgsForCall(i int) (bool, string)
- func (fake *FakeWhitelist) ShouldSkipNotificationCallCount() int
- func (fake *FakeWhitelist) ShouldSkipNotificationReturns(result1 bool)
- func (fake *FakeWhitelist) ShouldSkipNotificationReturnsOnCall(i int, result1 bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAddressBook ¶
type FakeAddressBook struct { AddressForRepoStub func(ctx context.Context, logger lager.Logger, owner, name string) []notifications.Address // contains filtered or unexported fields }
func (*FakeAddressBook) AddressForRepo ¶
func (fake *FakeAddressBook) AddressForRepo(ctx context.Context, logger lager.Logger, owner string, name string) []notifications.Address
func (*FakeAddressBook) AddressForRepoArgsForCall ¶
func (*FakeAddressBook) AddressForRepoCallCount ¶
func (fake *FakeAddressBook) AddressForRepoCallCount() int
func (*FakeAddressBook) AddressForRepoReturns ¶
func (fake *FakeAddressBook) AddressForRepoReturns(result1 []notifications.Address)
func (*FakeAddressBook) AddressForRepoReturnsOnCall ¶
func (fake *FakeAddressBook) AddressForRepoReturnsOnCall(i int, result1 []notifications.Address)
func (*FakeAddressBook) Invocations ¶
func (fake *FakeAddressBook) Invocations() map[string][][]interface{}
type FakeHTTPClient ¶
type FakeHTTPClient struct { DoStub func(r *http.Request) (*http.Response, error) // contains filtered or unexported fields }
func (*FakeHTTPClient) DoArgsForCall ¶
func (fake *FakeHTTPClient) DoArgsForCall(i int) *http.Request
func (*FakeHTTPClient) DoCallCount ¶
func (fake *FakeHTTPClient) DoCallCount() int
func (*FakeHTTPClient) DoReturns ¶
func (fake *FakeHTTPClient) DoReturns(result1 *http.Response, result2 error)
func (*FakeHTTPClient) DoReturnsOnCall ¶
func (fake *FakeHTTPClient) DoReturnsOnCall(i int, result1 *http.Response, result2 error)
func (*FakeHTTPClient) Invocations ¶
func (fake *FakeHTTPClient) Invocations() map[string][][]interface{}
type FakeNotifier ¶
type FakeNotifier struct { SendStub func(lager.Logger, notifications.Envelope) error // contains filtered or unexported fields }
func (*FakeNotifier) Invocations ¶
func (fake *FakeNotifier) Invocations() map[string][][]interface{}
func (*FakeNotifier) Send ¶
func (fake *FakeNotifier) Send(arg1 lager.Logger, arg2 notifications.Envelope) error
func (*FakeNotifier) SendArgsForCall ¶
func (fake *FakeNotifier) SendArgsForCall(i int) (lager.Logger, notifications.Envelope)
func (*FakeNotifier) SendCallCount ¶
func (fake *FakeNotifier) SendCallCount() int
func (*FakeNotifier) SendReturns ¶
func (fake *FakeNotifier) SendReturns(result1 error)
func (*FakeNotifier) SendReturnsOnCall ¶
func (fake *FakeNotifier) SendReturnsOnCall(i int, result1 error)
type FakeRolodexClient ¶
type FakeRolodexClient struct { GetOwnersStub func(ctx netcontext.Context, in *rolodexpb.GetOwnersRequest, opts ...grpc.CallOption) (*rolodexpb.GetOwnersResponse, error) // contains filtered or unexported fields }
func (*FakeRolodexClient) GetOwners ¶
func (fake *FakeRolodexClient) GetOwners(ctx netcontext.Context, in *rolodexpb.GetOwnersRequest, opts ...grpc.CallOption) (*rolodexpb.GetOwnersResponse, error)
func (*FakeRolodexClient) GetOwnersArgsForCall ¶
func (fake *FakeRolodexClient) GetOwnersArgsForCall(i int) (netcontext.Context, *rolodexpb.GetOwnersRequest, []grpc.CallOption)
func (*FakeRolodexClient) GetOwnersCallCount ¶
func (fake *FakeRolodexClient) GetOwnersCallCount() int
func (*FakeRolodexClient) GetOwnersReturns ¶
func (fake *FakeRolodexClient) GetOwnersReturns(result1 *rolodexpb.GetOwnersResponse, result2 error)
func (*FakeRolodexClient) GetOwnersReturnsOnCall ¶
func (fake *FakeRolodexClient) GetOwnersReturnsOnCall(i int, result1 *rolodexpb.GetOwnersResponse, result2 error)
func (*FakeRolodexClient) Invocations ¶
func (fake *FakeRolodexClient) Invocations() map[string][][]interface{}
type FakeRouter ¶
type FakeRouter struct { DeliverStub func(ctx context.Context, logger lager.Logger, batch []notifications.Notification) error // contains filtered or unexported fields }
func (*FakeRouter) Deliver ¶
func (fake *FakeRouter) Deliver(ctx context.Context, logger lager.Logger, batch []notifications.Notification) error
func (*FakeRouter) DeliverArgsForCall ¶
func (fake *FakeRouter) DeliverArgsForCall(i int) (context.Context, lager.Logger, []notifications.Notification)
func (*FakeRouter) DeliverCallCount ¶
func (fake *FakeRouter) DeliverCallCount() int
func (*FakeRouter) DeliverReturns ¶
func (fake *FakeRouter) DeliverReturns(result1 error)
func (*FakeRouter) DeliverReturnsOnCall ¶
func (fake *FakeRouter) DeliverReturnsOnCall(i int, result1 error)
func (*FakeRouter) Invocations ¶
func (fake *FakeRouter) Invocations() map[string][][]interface{}
type FakeSlackNotificationFormatter ¶
type FakeSlackNotificationFormatter struct { FormatNotificationsStub func(batch []notifications.Notification) []notifications.SlackMessage // contains filtered or unexported fields }
func (*FakeSlackNotificationFormatter) FormatNotifications ¶
func (fake *FakeSlackNotificationFormatter) FormatNotifications(batch []notifications.Notification) []notifications.SlackMessage
func (*FakeSlackNotificationFormatter) FormatNotificationsArgsForCall ¶
func (fake *FakeSlackNotificationFormatter) FormatNotificationsArgsForCall(i int) []notifications.Notification
func (*FakeSlackNotificationFormatter) FormatNotificationsCallCount ¶
func (fake *FakeSlackNotificationFormatter) FormatNotificationsCallCount() int
func (*FakeSlackNotificationFormatter) FormatNotificationsReturns ¶
func (fake *FakeSlackNotificationFormatter) FormatNotificationsReturns(result1 []notifications.SlackMessage)
func (*FakeSlackNotificationFormatter) FormatNotificationsReturnsOnCall ¶
func (fake *FakeSlackNotificationFormatter) FormatNotificationsReturnsOnCall(i int, result1 []notifications.SlackMessage)
func (*FakeSlackNotificationFormatter) Invocations ¶
func (fake *FakeSlackNotificationFormatter) Invocations() map[string][][]interface{}
type FakeWhitelist ¶
type FakeWhitelist struct { ShouldSkipNotificationStub func(bool, string) bool // contains filtered or unexported fields }
func (*FakeWhitelist) Invocations ¶
func (fake *FakeWhitelist) Invocations() map[string][][]interface{}
func (*FakeWhitelist) ShouldSkipNotification ¶
func (fake *FakeWhitelist) ShouldSkipNotification(arg1 bool, arg2 string) bool
func (*FakeWhitelist) ShouldSkipNotificationArgsForCall ¶
func (fake *FakeWhitelist) ShouldSkipNotificationArgsForCall(i int) (bool, string)
func (*FakeWhitelist) ShouldSkipNotificationCallCount ¶
func (fake *FakeWhitelist) ShouldSkipNotificationCallCount() int
func (*FakeWhitelist) ShouldSkipNotificationReturns ¶
func (fake *FakeWhitelist) ShouldSkipNotificationReturns(result1 bool)
func (*FakeWhitelist) ShouldSkipNotificationReturnsOnCall ¶
func (fake *FakeWhitelist) ShouldSkipNotificationReturnsOnCall(i int, result1 bool)
Click to show internal directories.
Click to hide internal directories.