mocks

package
v0.0.0-...-65468f9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 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 Window

type Window struct {
	mock.Mock
}

Window is an autogenerated mock type for the Window type

func AllInclusiveWindow

func AllInclusiveWindow() *Window

AllInclusiveWindow returns a Window which includes everything.

func NewWindow

func NewWindow(t interface {
	mock.TestingT
	Cleanup(func())
}) *Window

NewWindow creates a new instance of Window. 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 (*Window) EarliestStart

func (_m *Window) EarliestStart() time.Time

EarliestStart provides a mock function with given fields:

func (*Window) Start

func (_m *Window) Start(repo string) time.Time

Start provides a mock function with given fields: repo

func (*Window) StartTimesByRepo

func (_m *Window) StartTimesByRepo() map[string]time.Time

StartTimesByRepo provides a mock function with given fields:

func (*Window) TestCommit

func (_m *Window) TestCommit(repo string, c *repograph.Commit) bool

TestCommit provides a mock function with given fields: repo, c

func (*Window) TestCommitHash

func (_m *Window) TestCommitHash(repo string, revision string) (bool, error)

TestCommitHash provides a mock function with given fields: repo, revision

func (*Window) TestTime

func (_m *Window) TestTime(repo string, t time.Time) bool

TestTime provides a mock function with given fields: repo, t

func (*Window) Update

func (_m *Window) Update(ctx context.Context) error

Update provides a mock function with given fields: ctx

func (*Window) UpdateWithTime

func (_m *Window) UpdateWithTime(now time.Time) error

UpdateWithTime provides a mock function with given fields: now

Jump to

Keyboard shortcuts

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