mock

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoBackend added in v0.2.0

type RepoBackend struct{}

RepoBackend is used to fake a repo backend in testing.

func NewMockRepoBackend

func NewMockRepoBackend() *RepoBackend

NewMockRepoBackend returns a new RepoBackend

func (*RepoBackend) GC added in v0.2.0

func (mrb *RepoBackend) GC() ([]h.Hash, error)

GC does nothing.

func (*RepoBackend) Init added in v0.2.0

func (mrb *RepoBackend) Init(folder string) error

Init does nothing to create a mock repo.

func (*RepoBackend) Name added in v0.2.0

func (mrb *RepoBackend) Name() string

Name returns "mock"

Jump to

Keyboard shortcuts

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