notificationsfakes

package
v85.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

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 (fake *FakeAddressBook) AddressForRepoArgsForCall(i int) (context.Context, lager.Logger, string, string)

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) Do

func (fake *FakeHTTPClient) Do(r *http.Request) (*http.Response, error)

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(context.Context, 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 context.Context, arg2 lager.Logger, arg3 notifications.Envelope) error

func (*FakeNotifier) SendArgsForCall

func (fake *FakeNotifier) SendArgsForCall(i int) (context.Context, 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 (*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 (*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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL