mocks

package
v0.0.0-...-d850389 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitilesLogger

type GitilesLogger struct {
	mock.Mock
}

GitilesLogger is an autogenerated mock type for the GitilesLogger type

func NewGitilesLogger

func NewGitilesLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitilesLogger

NewGitilesLogger creates a new instance of GitilesLogger. 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 (*GitilesLogger) Log

func (_m *GitilesLogger) Log(ctx context.Context, logExpr string, opts ...gitiles.LogOption) ([]*vcsinfo.LongCommit, error)

Log provides a mock function with given fields: ctx, logExpr, opts

func (*GitilesLogger) LogFirstParent

func (_m *GitilesLogger) LogFirstParent(ctx context.Context, from string, to string, opts ...gitiles.LogOption) ([]*vcsinfo.LongCommit, error)

LogFirstParent provides a mock function with given fields: ctx, from, to, opts

Jump to

Keyboard shortcuts

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