mocks

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 5 Imported by: 0

README

Deprecated Interface Mocks

These are deprecated and no additional should be added.

If you need to update any for old legacy tests, run:

# For example:
$ GO111MODULE=off mockgen -package mocks github.com/dollarshaveclub/acyl/pkg/persistence DataLayer > ./mock_datalayer.go

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepoClient

type MockRepoClient struct {
	// contains filtered or unexported fields
}

MockRepoClient is a mock of RepoClient interface

func NewMockRepoClient

func NewMockRepoClient(ctrl *gomock.Controller) *MockRepoClient

NewMockRepoClient creates a new mock instance

func (*MockRepoClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRepoClient) GetBranch

func (m *MockRepoClient) GetBranch(arg0 context.Context, arg1, arg2 string) (ghclient.BranchInfo, error)

GetBranch mocks base method

func (*MockRepoClient) GetBranches

func (m *MockRepoClient) GetBranches(arg0 context.Context, arg1 string) ([]ghclient.BranchInfo, error)

GetBranches mocks base method

func (*MockRepoClient) GetCommitMessage

func (m *MockRepoClient) GetCommitMessage(arg0 context.Context, arg1, arg2 string) (string, error)

GetCommitMessage mocks base method

func (*MockRepoClient) GetDirectoryContents

func (m *MockRepoClient) GetDirectoryContents(arg0 context.Context, arg1, arg2, arg3 string) (map[string]ghclient.FileContents, error)

GetDirectoryContents mocks base method

func (*MockRepoClient) GetFileContents

func (m *MockRepoClient) GetFileContents(arg0 context.Context, arg1, arg2, arg3 string) ([]byte, error)

GetFileContents mocks base method

func (*MockRepoClient) GetPRStatus

func (m *MockRepoClient) GetPRStatus(arg0 context.Context, arg1 string, arg2 uint) (string, error)

GetPRStatus mocks base method

func (*MockRepoClient) GetRepoArchive added in v0.7.6

func (m *MockRepoClient) GetRepoArchive(arg0 context.Context, arg1, arg2 string) (string, error)

GetRepoArchive mocks base method

func (*MockRepoClient) GetTags

func (m *MockRepoClient) GetTags(arg0 context.Context, arg1 string) ([]ghclient.BranchInfo, error)

GetTags mocks base method

func (*MockRepoClient) SetStatus

func (m *MockRepoClient) SetStatus(arg0 context.Context, arg1, arg2 string, arg3 *ghclient.CommitStatus) error

SetStatus mocks base method

type MockRepoClientMockRecorder

type MockRepoClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepoClientMockRecorder is the mock recorder for MockRepoClient

func (*MockRepoClientMockRecorder) GetBranch

func (mr *MockRepoClientMockRecorder) GetBranch(arg0, arg1, arg2 interface{}) *gomock.Call

GetBranch indicates an expected call of GetBranch

func (*MockRepoClientMockRecorder) GetBranches

func (mr *MockRepoClientMockRecorder) GetBranches(arg0, arg1 interface{}) *gomock.Call

GetBranches indicates an expected call of GetBranches

func (*MockRepoClientMockRecorder) GetCommitMessage

func (mr *MockRepoClientMockRecorder) GetCommitMessage(arg0, arg1, arg2 interface{}) *gomock.Call

GetCommitMessage indicates an expected call of GetCommitMessage

func (*MockRepoClientMockRecorder) GetDirectoryContents

func (mr *MockRepoClientMockRecorder) GetDirectoryContents(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetDirectoryContents indicates an expected call of GetDirectoryContents

func (*MockRepoClientMockRecorder) GetFileContents

func (mr *MockRepoClientMockRecorder) GetFileContents(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetFileContents indicates an expected call of GetFileContents

func (*MockRepoClientMockRecorder) GetPRStatus

func (mr *MockRepoClientMockRecorder) GetPRStatus(arg0, arg1, arg2 interface{}) *gomock.Call

GetPRStatus indicates an expected call of GetPRStatus

func (*MockRepoClientMockRecorder) GetRepoArchive added in v0.7.6

func (mr *MockRepoClientMockRecorder) GetRepoArchive(arg0, arg1, arg2 interface{}) *gomock.Call

GetRepoArchive indicates an expected call of GetRepoArchive

func (*MockRepoClientMockRecorder) GetTags

func (mr *MockRepoClientMockRecorder) GetTags(arg0, arg1 interface{}) *gomock.Call

GetTags indicates an expected call of GetTags

func (*MockRepoClientMockRecorder) SetStatus

func (mr *MockRepoClientMockRecorder) SetStatus(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SetStatus indicates an expected call of SetStatus

type MockSlackAPIClient

type MockSlackAPIClient struct {
	// contains filtered or unexported fields
}

Mock of SlackAPIClient interface

func NewMockSlackAPIClient

func NewMockSlackAPIClient(ctrl *gomock.Controller) *MockSlackAPIClient

func (*MockSlackAPIClient) EXPECT

func (_m *MockSlackAPIClient) EXPECT() *_MockSlackAPIClientRecorder

func (*MockSlackAPIClient) PostMessage

func (_m *MockSlackAPIClient) PostMessage(_param0 string, _param1 string, _param2 slack.PostMessageParameters) (string, string, error)

Jump to

Keyboard shortcuts

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