mocks

package
v0.0.0-...-ace5988 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentChangesCache

type CurrentChangesCache struct {
	mock.Mock
}

CurrentChangesCache is an autogenerated mock type for the CurrentChangesCache type

func NewCurrentChangesCache

func NewCurrentChangesCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *CurrentChangesCache

NewCurrentChangesCache creates a new instance of CurrentChangesCache. 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 (*CurrentChangesCache) Add

func (_m *CurrentChangesCache) Add(ctx context.Context, changeEquivalentPatchset string, changeSubject string, changeOwner string, repo string, branch string, dryRun bool, internal bool, changeID int64, latestPatchsetID int64) (int64, bool, error)

Add provides a mock function with given fields: ctx, changeEquivalentPatchset, changeSubject, changeOwner, repo, branch, dryRun, internal, changeID, latestPatchsetID

func (*CurrentChangesCache) Get

Get provides a mock function with given fields:

func (*CurrentChangesCache) Remove

func (_m *CurrentChangesCache) Remove(ctx context.Context, changeEquivalentPatchset string) error

Remove provides a mock function with given fields: ctx, changeEquivalentPatchset

Jump to

Keyboard shortcuts

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