mock_models

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_models is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTranslator

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

MockTranslator is a mock of Translator interface

func NewMockTranslator

func NewMockTranslator(ctrl *gomock.Controller) *MockTranslator

NewMockTranslator creates a new mock instance

func (*MockTranslator) EXPECT

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

func (*MockTranslator) TranslatePR

func (m *MockTranslator) TranslatePR(reader io.Reader) (*pb.PullRequest, error)

TranslatePR mocks base method

func (*MockTranslator) TranslatePush

func (m *MockTranslator) TranslatePush(reader io.Reader) (*pb.Push, error)

TranslatePush mocks base method

type MockTranslatorMockRecorder

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

MockTranslatorMockRecorder is the mock recorder for MockTranslator

func (*MockTranslatorMockRecorder) TranslatePR

func (mr *MockTranslatorMockRecorder) TranslatePR(reader interface{}) *gomock.Call

TranslatePR indicates an expected call of TranslatePR

func (*MockTranslatorMockRecorder) TranslatePush

func (mr *MockTranslatorMockRecorder) TranslatePush(reader interface{}) *gomock.Call

TranslatePush indicates an expected call of TranslatePush

type MockVCSHandler

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

MockVCSHandler is a mock of VCSHandler interface

func NewMockVCSHandler

func NewMockVCSHandler(ctrl *gomock.Controller) *MockVCSHandler

NewMockVCSHandler creates a new mock instance

func (*MockVCSHandler) CreateWebhook

func (m *MockVCSHandler) CreateWebhook(webhookURL string) error

CreateWebhook mocks base method

func (*MockVCSHandler) EXPECT

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

func (*MockVCSHandler) GetAllBranchesLastCommitData

func (m *MockVCSHandler) GetAllBranchesLastCommitData(acctRepo string) ([]*pb.BranchHistory, error)

GetAllBranchesLastCommitData mocks base method

func (*MockVCSHandler) GetBaseURL

func (m *MockVCSHandler) GetBaseURL() string

GetBaseURL mocks base method

func (*MockVCSHandler) GetBranchLastCommitData

func (m *MockVCSHandler) GetBranchLastCommitData(acctRepo, branch string) (*pb.BranchHistory, error)

GetBranchLastCommitData mocks base method

func (*MockVCSHandler) GetCallbackURL

func (m *MockVCSHandler) GetCallbackURL() string

GetCallbackURL mocks base method

func (*MockVCSHandler) GetChangedFiles

func (m *MockVCSHandler) GetChangedFiles(acctRepo, latesthash, earliestHash string) ([]string, error)

GetChangedFiles mocks base method

func (*MockVCSHandler) GetClient

func (m *MockVCSHandler) GetClient() net.HttpClient

GetClient mocks base method

func (*MockVCSHandler) GetCommit

func (m *MockVCSHandler) GetCommit(acctRepo, hash string) (*pb.Commit, error)

GetCommit mocks base method

func (*MockVCSHandler) GetCommitLog

func (m *MockVCSHandler) GetCommitLog(acctRepo, branch, lastHash string) ([]*pb.Commit, error)

GetCommitLog mocks base method

func (*MockVCSHandler) GetFile

func (m *MockVCSHandler) GetFile(filePath, fullRepoName, commitHash string) ([]byte, error)

GetFile mocks base method

func (m *MockVCSHandler) GetRepoLinks(acctRepo string) (*pb.Links, error)

GetRepoLinks mocks base method

func (*MockVCSHandler) GetVcsType added in v0.8.0

func (m *MockVCSHandler) GetVcsType() pb.SubCredType

GetVcsType mocks base method

func (*MockVCSHandler) PostPRComment

func (m *MockVCSHandler) PostPRComment(acctRepo, prId, hash string, failed bool, buildId int64) error

PostPRComment mocks base method

func (*MockVCSHandler) SetBaseURL

func (m *MockVCSHandler) SetBaseURL(baseURL string)

SetBaseURL mocks base method

func (*MockVCSHandler) SetCallbackURL

func (m *MockVCSHandler) SetCallbackURL(callbackURL string)

SetCallbackURL mocks base method

func (*MockVCSHandler) Walk

func (m *MockVCSHandler) Walk() error

Walk mocks base method

type MockVCSHandlerMockRecorder

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

MockVCSHandlerMockRecorder is the mock recorder for MockVCSHandler

func (*MockVCSHandlerMockRecorder) CreateWebhook

func (mr *MockVCSHandlerMockRecorder) CreateWebhook(webhookURL interface{}) *gomock.Call

CreateWebhook indicates an expected call of CreateWebhook

func (*MockVCSHandlerMockRecorder) GetAllBranchesLastCommitData

func (mr *MockVCSHandlerMockRecorder) GetAllBranchesLastCommitData(acctRepo interface{}) *gomock.Call

GetAllBranchesLastCommitData indicates an expected call of GetAllBranchesLastCommitData

func (*MockVCSHandlerMockRecorder) GetBaseURL

func (mr *MockVCSHandlerMockRecorder) GetBaseURL() *gomock.Call

GetBaseURL indicates an expected call of GetBaseURL

func (*MockVCSHandlerMockRecorder) GetBranchLastCommitData

func (mr *MockVCSHandlerMockRecorder) GetBranchLastCommitData(acctRepo, branch interface{}) *gomock.Call

GetBranchLastCommitData indicates an expected call of GetBranchLastCommitData

func (*MockVCSHandlerMockRecorder) GetCallbackURL

func (mr *MockVCSHandlerMockRecorder) GetCallbackURL() *gomock.Call

GetCallbackURL indicates an expected call of GetCallbackURL

func (*MockVCSHandlerMockRecorder) GetChangedFiles

func (mr *MockVCSHandlerMockRecorder) GetChangedFiles(acctRepo, latesthash, earliestHash interface{}) *gomock.Call

GetChangedFiles indicates an expected call of GetChangedFiles

func (*MockVCSHandlerMockRecorder) GetClient

func (mr *MockVCSHandlerMockRecorder) GetClient() *gomock.Call

GetClient indicates an expected call of GetClient

func (*MockVCSHandlerMockRecorder) GetCommit

func (mr *MockVCSHandlerMockRecorder) GetCommit(acctRepo, hash interface{}) *gomock.Call

GetCommit indicates an expected call of GetCommit

func (*MockVCSHandlerMockRecorder) GetCommitLog

func (mr *MockVCSHandlerMockRecorder) GetCommitLog(acctRepo, branch, lastHash interface{}) *gomock.Call

GetCommitLog indicates an expected call of GetCommitLog

func (*MockVCSHandlerMockRecorder) GetFile

func (mr *MockVCSHandlerMockRecorder) GetFile(filePath, fullRepoName, commitHash interface{}) *gomock.Call

GetFile indicates an expected call of GetFile

func (mr *MockVCSHandlerMockRecorder) GetRepoLinks(acctRepo interface{}) *gomock.Call

GetRepoLinks indicates an expected call of GetRepoLinks

func (*MockVCSHandlerMockRecorder) GetVcsType added in v0.8.0

func (mr *MockVCSHandlerMockRecorder) GetVcsType() *gomock.Call

GetVcsType indicates an expected call of GetVcsType

func (*MockVCSHandlerMockRecorder) PostPRComment

func (mr *MockVCSHandlerMockRecorder) PostPRComment(acctRepo, prId, hash, failed, buildId interface{}) *gomock.Call

PostPRComment indicates an expected call of PostPRComment

func (*MockVCSHandlerMockRecorder) SetBaseURL

func (mr *MockVCSHandlerMockRecorder) SetBaseURL(baseURL interface{}) *gomock.Call

SetBaseURL indicates an expected call of SetBaseURL

func (*MockVCSHandlerMockRecorder) SetCallbackURL

func (mr *MockVCSHandlerMockRecorder) SetCallbackURL(callbackURL interface{}) *gomock.Call

SetCallbackURL indicates an expected call of SetCallbackURL

func (*MockVCSHandlerMockRecorder) Walk

Walk indicates an expected call of Walk

Jump to

Keyboard shortcuts

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