mocks

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func NewCache added in v0.4.0

func NewCache(t mockConstructorTestingTNewCache) *Cache

NewCache creates a new instance of Cache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Cache) Checkout

func (_m *Cache) Checkout(workDir string, art artifact.Artifact, s strategy.CheckoutStrategy, p *pb.ProgressBar) error

Checkout provides a mock function with given fields: workDir, art, s, p

func (*Cache) Commit

func (_m *Cache) Commit(workDir string, art *artifact.Artifact, s strategy.CheckoutStrategy, l *agglog.AggLogger) error

Commit provides a mock function with given fields: workDir, art, s, l

func (*Cache) Fetch

func (_m *Cache) Fetch(remoteSrc string, arts map[string]*artifact.Artifact) error

Fetch provides a mock function with given fields: remoteSrc, arts

func (*Cache) Push

func (_m *Cache) Push(remoteDst string, arts map[string]*artifact.Artifact) error

Push provides a mock function with given fields: remoteDst, arts

func (*Cache) Status

func (_m *Cache) Status(workDir string, art artifact.Artifact, shortCircuit bool) (artifact.Status, error)

Status provides a mock function with given fields: workDir, art, shortCircuit

Jump to

Keyboard shortcuts

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