mocks

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChange

type MockChange struct {
	mock.Mock
}

MockChange is an autogenerated mock type for the Change type

func NewMockChange

func NewMockChange(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockChange

NewMockChange creates a new instance of MockChange. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockChange) EXPECT

func (_m *MockChange) EXPECT() *MockChange_Expecter

func (*MockChange) FromName

func (_mock *MockChange) FromName() string

FromName provides a mock function for the type MockChange

func (*MockChange) Patch

func (_mock *MockChange) Patch() (vcs.Patch, error)

Patch provides a mock function for the type MockChange

func (*MockChange) ToName

func (_mock *MockChange) ToName() string

ToName provides a mock function for the type MockChange

type MockChange_Expecter

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

func (*MockChange_Expecter) FromName

FromName is a helper method to define mock.On call

func (*MockChange_Expecter) Patch

Patch is a helper method to define mock.On call

func (*MockChange_Expecter) ToName

ToName is a helper method to define mock.On call

type MockChange_FromName_Call

type MockChange_FromName_Call struct {
	*mock.Call
}

MockChange_FromName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FromName'

func (*MockChange_FromName_Call) Return

func (*MockChange_FromName_Call) Run

func (*MockChange_FromName_Call) RunAndReturn

func (_c *MockChange_FromName_Call) RunAndReturn(run func() string) *MockChange_FromName_Call

type MockChange_Patch_Call

type MockChange_Patch_Call struct {
	*mock.Call
}

MockChange_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'

func (*MockChange_Patch_Call) Return

func (_c *MockChange_Patch_Call) Return(patch vcs.Patch, err error) *MockChange_Patch_Call

func (*MockChange_Patch_Call) Run

func (_c *MockChange_Patch_Call) Run(run func()) *MockChange_Patch_Call

func (*MockChange_Patch_Call) RunAndReturn

func (_c *MockChange_Patch_Call) RunAndReturn(run func() (vcs.Patch, error)) *MockChange_Patch_Call

type MockChange_ToName_Call

type MockChange_ToName_Call struct {
	*mock.Call
}

MockChange_ToName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToName'

func (*MockChange_ToName_Call) Return

func (*MockChange_ToName_Call) Run

func (_c *MockChange_ToName_Call) Run(run func()) *MockChange_ToName_Call

func (*MockChange_ToName_Call) RunAndReturn

func (_c *MockChange_ToName_Call) RunAndReturn(run func() string) *MockChange_ToName_Call

type MockChunk

type MockChunk struct {
	mock.Mock
}

MockChunk is an autogenerated mock type for the Chunk type

func NewMockChunk

func NewMockChunk(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockChunk

NewMockChunk creates a new instance of MockChunk. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockChunk) Content

func (_mock *MockChunk) Content() string

Content provides a mock function for the type MockChunk

func (*MockChunk) EXPECT

func (_m *MockChunk) EXPECT() *MockChunk_Expecter

func (*MockChunk) Type

func (_mock *MockChunk) Type() vcs.ChunkType

Type provides a mock function for the type MockChunk

type MockChunk_Content_Call

type MockChunk_Content_Call struct {
	*mock.Call
}

MockChunk_Content_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Content'

func (*MockChunk_Content_Call) Return

func (*MockChunk_Content_Call) Run

func (_c *MockChunk_Content_Call) Run(run func()) *MockChunk_Content_Call

func (*MockChunk_Content_Call) RunAndReturn

func (_c *MockChunk_Content_Call) RunAndReturn(run func() string) *MockChunk_Content_Call

type MockChunk_Expecter

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

func (*MockChunk_Expecter) Content

Content is a helper method to define mock.On call

func (*MockChunk_Expecter) Type

Type is a helper method to define mock.On call

type MockChunk_Type_Call

type MockChunk_Type_Call struct {
	*mock.Call
}

MockChunk_Type_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Type'

func (*MockChunk_Type_Call) Return

func (_c *MockChunk_Type_Call) Return(chunkType vcs.ChunkType) *MockChunk_Type_Call

func (*MockChunk_Type_Call) Run

func (_c *MockChunk_Type_Call) Run(run func()) *MockChunk_Type_Call

func (*MockChunk_Type_Call) RunAndReturn

func (_c *MockChunk_Type_Call) RunAndReturn(run func() vcs.ChunkType) *MockChunk_Type_Call

type MockCommit

type MockCommit struct {
	mock.Mock
}

MockCommit is an autogenerated mock type for the Commit type

func NewMockCommit

func NewMockCommit(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCommit

NewMockCommit creates a new instance of MockCommit. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCommit) Author

func (_mock *MockCommit) Author() object.Signature

Author provides a mock function for the type MockCommit

func (*MockCommit) EXPECT

func (_m *MockCommit) EXPECT() *MockCommit_Expecter

func (*MockCommit) Hash

func (_mock *MockCommit) Hash() plumbing.Hash

Hash provides a mock function for the type MockCommit

func (*MockCommit) NumParents

func (_mock *MockCommit) NumParents() int

NumParents provides a mock function for the type MockCommit

func (*MockCommit) Parent

func (_mock *MockCommit) Parent(n int) (vcs.Commit, error)

Parent provides a mock function for the type MockCommit

func (*MockCommit) Stats

func (_mock *MockCommit) Stats() (object.FileStats, error)

Stats provides a mock function for the type MockCommit

func (*MockCommit) Tree

func (_mock *MockCommit) Tree() (vcs.Tree, error)

Tree provides a mock function for the type MockCommit

type MockCommitIterator

type MockCommitIterator struct {
	mock.Mock
}

MockCommitIterator is an autogenerated mock type for the CommitIterator type

func NewMockCommitIterator

func NewMockCommitIterator(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCommitIterator

NewMockCommitIterator creates a new instance of MockCommitIterator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCommitIterator) Close

func (_mock *MockCommitIterator) Close()

Close provides a mock function for the type MockCommitIterator

func (*MockCommitIterator) EXPECT

func (*MockCommitIterator) ForEach

func (_mock *MockCommitIterator) ForEach(fn func(vcs.Commit) error) error

ForEach provides a mock function for the type MockCommitIterator

type MockCommitIterator_Close_Call

type MockCommitIterator_Close_Call struct {
	*mock.Call
}

MockCommitIterator_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*MockCommitIterator_Close_Call) Return

func (*MockCommitIterator_Close_Call) Run

func (*MockCommitIterator_Close_Call) RunAndReturn

func (_c *MockCommitIterator_Close_Call) RunAndReturn(run func()) *MockCommitIterator_Close_Call

type MockCommitIterator_Expecter

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

func (*MockCommitIterator_Expecter) Close

Close is a helper method to define mock.On call

func (*MockCommitIterator_Expecter) ForEach

func (_e *MockCommitIterator_Expecter) ForEach(fn interface{}) *MockCommitIterator_ForEach_Call

ForEach is a helper method to define mock.On call

  • fn func(vcs.Commit) error

type MockCommitIterator_ForEach_Call

type MockCommitIterator_ForEach_Call struct {
	*mock.Call
}

MockCommitIterator_ForEach_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForEach'

func (*MockCommitIterator_ForEach_Call) Return

func (*MockCommitIterator_ForEach_Call) Run

func (*MockCommitIterator_ForEach_Call) RunAndReturn

type MockCommit_Author_Call

type MockCommit_Author_Call struct {
	*mock.Call
}

MockCommit_Author_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Author'

func (*MockCommit_Author_Call) Return

func (*MockCommit_Author_Call) Run

func (_c *MockCommit_Author_Call) Run(run func()) *MockCommit_Author_Call

func (*MockCommit_Author_Call) RunAndReturn

func (_c *MockCommit_Author_Call) RunAndReturn(run func() object.Signature) *MockCommit_Author_Call

type MockCommit_Expecter

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

func (*MockCommit_Expecter) Author

Author is a helper method to define mock.On call

func (*MockCommit_Expecter) Hash

Hash is a helper method to define mock.On call

func (*MockCommit_Expecter) NumParents

NumParents is a helper method to define mock.On call

func (*MockCommit_Expecter) Parent

func (_e *MockCommit_Expecter) Parent(n interface{}) *MockCommit_Parent_Call

Parent is a helper method to define mock.On call

  • n int

func (*MockCommit_Expecter) Stats

Stats is a helper method to define mock.On call

func (*MockCommit_Expecter) Tree

Tree is a helper method to define mock.On call

type MockCommit_Hash_Call

type MockCommit_Hash_Call struct {
	*mock.Call
}

MockCommit_Hash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hash'

func (*MockCommit_Hash_Call) Return

func (*MockCommit_Hash_Call) Run

func (_c *MockCommit_Hash_Call) Run(run func()) *MockCommit_Hash_Call

func (*MockCommit_Hash_Call) RunAndReturn

func (_c *MockCommit_Hash_Call) RunAndReturn(run func() plumbing.Hash) *MockCommit_Hash_Call

type MockCommit_NumParents_Call

type MockCommit_NumParents_Call struct {
	*mock.Call
}

MockCommit_NumParents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NumParents'

func (*MockCommit_NumParents_Call) Return

func (*MockCommit_NumParents_Call) Run

func (*MockCommit_NumParents_Call) RunAndReturn

func (_c *MockCommit_NumParents_Call) RunAndReturn(run func() int) *MockCommit_NumParents_Call

type MockCommit_Parent_Call

type MockCommit_Parent_Call struct {
	*mock.Call
}

MockCommit_Parent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Parent'

func (*MockCommit_Parent_Call) Return

func (*MockCommit_Parent_Call) Run

func (_c *MockCommit_Parent_Call) Run(run func(n int)) *MockCommit_Parent_Call

func (*MockCommit_Parent_Call) RunAndReturn

func (_c *MockCommit_Parent_Call) RunAndReturn(run func(n int) (vcs.Commit, error)) *MockCommit_Parent_Call

type MockCommit_Stats_Call

type MockCommit_Stats_Call struct {
	*mock.Call
}

MockCommit_Stats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stats'

func (*MockCommit_Stats_Call) Return

func (*MockCommit_Stats_Call) Run

func (_c *MockCommit_Stats_Call) Run(run func()) *MockCommit_Stats_Call

func (*MockCommit_Stats_Call) RunAndReturn

func (_c *MockCommit_Stats_Call) RunAndReturn(run func() (object.FileStats, error)) *MockCommit_Stats_Call

type MockCommit_Tree_Call

type MockCommit_Tree_Call struct {
	*mock.Call
}

MockCommit_Tree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tree'

func (*MockCommit_Tree_Call) Return

func (_c *MockCommit_Tree_Call) Return(tree vcs.Tree, err error) *MockCommit_Tree_Call

func (*MockCommit_Tree_Call) Run

func (_c *MockCommit_Tree_Call) Run(run func()) *MockCommit_Tree_Call

func (*MockCommit_Tree_Call) RunAndReturn

func (_c *MockCommit_Tree_Call) RunAndReturn(run func() (vcs.Tree, error)) *MockCommit_Tree_Call

type MockFilePatch

type MockFilePatch struct {
	mock.Mock
}

MockFilePatch is an autogenerated mock type for the FilePatch type

func NewMockFilePatch

func NewMockFilePatch(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFilePatch

NewMockFilePatch creates a new instance of MockFilePatch. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockFilePatch) Chunks

func (_mock *MockFilePatch) Chunks() []vcs.Chunk

Chunks provides a mock function for the type MockFilePatch

func (*MockFilePatch) EXPECT

func (_m *MockFilePatch) EXPECT() *MockFilePatch_Expecter

type MockFilePatch_Chunks_Call

type MockFilePatch_Chunks_Call struct {
	*mock.Call
}

MockFilePatch_Chunks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Chunks'

func (*MockFilePatch_Chunks_Call) Return

func (*MockFilePatch_Chunks_Call) Run

func (*MockFilePatch_Chunks_Call) RunAndReturn

func (_c *MockFilePatch_Chunks_Call) RunAndReturn(run func() []vcs.Chunk) *MockFilePatch_Chunks_Call

type MockFilePatch_Expecter

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

func (*MockFilePatch_Expecter) Chunks

Chunks is a helper method to define mock.On call

type MockOpener

type MockOpener struct {
	mock.Mock
}

MockOpener is an autogenerated mock type for the Opener type

func NewMockOpener

func NewMockOpener(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockOpener

NewMockOpener creates a new instance of MockOpener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockOpener) EXPECT

func (_m *MockOpener) EXPECT() *MockOpener_Expecter

func (*MockOpener) PlainOpen

func (_mock *MockOpener) PlainOpen(path string) (vcs.Repository, error)

PlainOpen provides a mock function for the type MockOpener

func (*MockOpener) PlainOpenWithDetect

func (_mock *MockOpener) PlainOpenWithDetect(path string) (vcs.Repository, error)

PlainOpenWithDetect provides a mock function for the type MockOpener

type MockOpener_Expecter

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

func (*MockOpener_Expecter) PlainOpen

func (_e *MockOpener_Expecter) PlainOpen(path interface{}) *MockOpener_PlainOpen_Call

PlainOpen is a helper method to define mock.On call

  • path string

func (*MockOpener_Expecter) PlainOpenWithDetect

func (_e *MockOpener_Expecter) PlainOpenWithDetect(path interface{}) *MockOpener_PlainOpenWithDetect_Call

PlainOpenWithDetect is a helper method to define mock.On call

  • path string

type MockOpener_PlainOpenWithDetect_Call

type MockOpener_PlainOpenWithDetect_Call struct {
	*mock.Call
}

MockOpener_PlainOpenWithDetect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PlainOpenWithDetect'

func (*MockOpener_PlainOpenWithDetect_Call) Return

func (*MockOpener_PlainOpenWithDetect_Call) Run

func (*MockOpener_PlainOpenWithDetect_Call) RunAndReturn

type MockOpener_PlainOpen_Call

type MockOpener_PlainOpen_Call struct {
	*mock.Call
}

MockOpener_PlainOpen_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PlainOpen'

func (*MockOpener_PlainOpen_Call) Return

func (*MockOpener_PlainOpen_Call) Run

func (*MockOpener_PlainOpen_Call) RunAndReturn

func (_c *MockOpener_PlainOpen_Call) RunAndReturn(run func(path string) (vcs.Repository, error)) *MockOpener_PlainOpen_Call

type MockPatch

type MockPatch struct {
	mock.Mock
}

MockPatch is an autogenerated mock type for the Patch type

func NewMockPatch

func NewMockPatch(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPatch

NewMockPatch creates a new instance of MockPatch. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockPatch) EXPECT

func (_m *MockPatch) EXPECT() *MockPatch_Expecter

func (*MockPatch) FilePatches

func (_mock *MockPatch) FilePatches() []vcs.FilePatch

FilePatches provides a mock function for the type MockPatch

type MockPatch_Expecter

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

func (*MockPatch_Expecter) FilePatches

FilePatches is a helper method to define mock.On call

type MockPatch_FilePatches_Call

type MockPatch_FilePatches_Call struct {
	*mock.Call
}

MockPatch_FilePatches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FilePatches'

func (*MockPatch_FilePatches_Call) Return

func (*MockPatch_FilePatches_Call) Run

func (*MockPatch_FilePatches_Call) RunAndReturn

func (_c *MockPatch_FilePatches_Call) RunAndReturn(run func() []vcs.FilePatch) *MockPatch_FilePatches_Call

type MockReference

type MockReference struct {
	mock.Mock
}

MockReference is an autogenerated mock type for the Reference type

func NewMockReference

func NewMockReference(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockReference

NewMockReference creates a new instance of MockReference. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockReference) EXPECT

func (_m *MockReference) EXPECT() *MockReference_Expecter

func (*MockReference) Hash

func (_mock *MockReference) Hash() plumbing.Hash

Hash provides a mock function for the type MockReference

type MockReference_Expecter

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

func (*MockReference_Expecter) Hash

Hash is a helper method to define mock.On call

type MockReference_Hash_Call

type MockReference_Hash_Call struct {
	*mock.Call
}

MockReference_Hash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hash'

func (*MockReference_Hash_Call) Return

func (*MockReference_Hash_Call) Run

func (_c *MockReference_Hash_Call) Run(run func()) *MockReference_Hash_Call

func (*MockReference_Hash_Call) RunAndReturn

func (_c *MockReference_Hash_Call) RunAndReturn(run func() plumbing.Hash) *MockReference_Hash_Call

type MockRepository

type MockRepository struct {
	mock.Mock
}

MockRepository is an autogenerated mock type for the Repository type

func NewMockRepository

func NewMockRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRepository

NewMockRepository creates a new instance of MockRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockRepository) Blame

func (_mock *MockRepository) Blame(commit vcs.Commit, path string) (*vcs.BlameResult, error)

Blame provides a mock function for the type MockRepository

func (*MockRepository) CommitObject

func (_mock *MockRepository) CommitObject(hash plumbing.Hash) (vcs.Commit, error)

CommitObject provides a mock function for the type MockRepository

func (*MockRepository) EXPECT

func (*MockRepository) Head

func (_mock *MockRepository) Head() (vcs.Reference, error)

Head provides a mock function for the type MockRepository

func (*MockRepository) Log

func (_mock *MockRepository) Log(opts *vcs.LogOptions) (vcs.CommitIterator, error)

Log provides a mock function for the type MockRepository

type MockRepository_Blame_Call

type MockRepository_Blame_Call struct {
	*mock.Call
}

MockRepository_Blame_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Blame'

func (*MockRepository_Blame_Call) Return

func (*MockRepository_Blame_Call) Run

func (_c *MockRepository_Blame_Call) Run(run func(commit vcs.Commit, path string)) *MockRepository_Blame_Call

func (*MockRepository_Blame_Call) RunAndReturn

func (_c *MockRepository_Blame_Call) RunAndReturn(run func(commit vcs.Commit, path string) (*vcs.BlameResult, error)) *MockRepository_Blame_Call

type MockRepository_CommitObject_Call

type MockRepository_CommitObject_Call struct {
	*mock.Call
}

MockRepository_CommitObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CommitObject'

func (*MockRepository_CommitObject_Call) Return

func (*MockRepository_CommitObject_Call) Run

func (*MockRepository_CommitObject_Call) RunAndReturn

type MockRepository_Expecter

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

func (*MockRepository_Expecter) Blame

func (_e *MockRepository_Expecter) Blame(commit interface{}, path interface{}) *MockRepository_Blame_Call

Blame is a helper method to define mock.On call

  • commit vcs.Commit
  • path string

func (*MockRepository_Expecter) CommitObject

func (_e *MockRepository_Expecter) CommitObject(hash interface{}) *MockRepository_CommitObject_Call

CommitObject is a helper method to define mock.On call

  • hash plumbing.Hash

func (*MockRepository_Expecter) Head

Head is a helper method to define mock.On call

func (*MockRepository_Expecter) Log

func (_e *MockRepository_Expecter) Log(opts interface{}) *MockRepository_Log_Call

Log is a helper method to define mock.On call

  • opts *vcs.LogOptions

type MockRepository_Head_Call

type MockRepository_Head_Call struct {
	*mock.Call
}

MockRepository_Head_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Head'

func (*MockRepository_Head_Call) Return

func (*MockRepository_Head_Call) Run

func (*MockRepository_Head_Call) RunAndReturn

func (_c *MockRepository_Head_Call) RunAndReturn(run func() (vcs.Reference, error)) *MockRepository_Head_Call

type MockRepository_Log_Call

type MockRepository_Log_Call struct {
	*mock.Call
}

MockRepository_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'

func (*MockRepository_Log_Call) Return

func (_c *MockRepository_Log_Call) Return(commitIterator vcs.CommitIterator, err error) *MockRepository_Log_Call

func (*MockRepository_Log_Call) Run

func (*MockRepository_Log_Call) RunAndReturn

type MockTree

type MockTree struct {
	mock.Mock
}

MockTree is an autogenerated mock type for the Tree type

func NewMockTree

func NewMockTree(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTree

NewMockTree creates a new instance of MockTree. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockTree) Diff

func (_mock *MockTree) Diff(to vcs.Tree) (vcs.Changes, error)

Diff provides a mock function for the type MockTree

func (*MockTree) EXPECT

func (_m *MockTree) EXPECT() *MockTree_Expecter

type MockTree_Diff_Call

type MockTree_Diff_Call struct {
	*mock.Call
}

MockTree_Diff_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Diff'

func (*MockTree_Diff_Call) Return

func (_c *MockTree_Diff_Call) Return(changes vcs.Changes, err error) *MockTree_Diff_Call

func (*MockTree_Diff_Call) Run

func (_c *MockTree_Diff_Call) Run(run func(to vcs.Tree)) *MockTree_Diff_Call

func (*MockTree_Diff_Call) RunAndReturn

func (_c *MockTree_Diff_Call) RunAndReturn(run func(to vcs.Tree) (vcs.Changes, error)) *MockTree_Diff_Call

type MockTree_Expecter

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

func (*MockTree_Expecter) Diff

func (_e *MockTree_Expecter) Diff(to interface{}) *MockTree_Diff_Call

Diff is a helper method to define mock.On call

  • to vcs.Tree

Jump to

Keyboard shortcuts

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