fakerepository

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS map[string][]byte

type FakeRepository

type FakeRepository struct {
	// contains filtered or unexported fields
}

func New

func New(fs FS, temporaries ...*FakeTemporaryRepository) *FakeRepository

func (*FakeRepository) LinkAllToTemporaryRepository

func (r *FakeRepository) LinkAllToTemporaryRepository(directoryPath string) ooze.TemporaryRepository

func (*FakeRepository) ListGoSourceFiles

func (r *FakeRepository) ListGoSourceFiles() []*gosourcefile.GoSourceFile

type FakeTemporaryRepository

type FakeTemporaryRepository struct {
	// contains filtered or unexported fields
}

func NewTemporary

func NewTemporary() *FakeTemporaryRepository

func NewTemporaryAt

func NewTemporaryAt(root string) *FakeTemporaryRepository

func (*FakeTemporaryRepository) ListFiles

func (r *FakeTemporaryRepository) ListFiles() FS

func (*FakeTemporaryRepository) Overwrite

func (r *FakeTemporaryRepository) Overwrite(filePath string, data []byte)

func (*FakeTemporaryRepository) Remove

func (r *FakeTemporaryRepository) Remove()

func (*FakeTemporaryRepository) Removed

func (r *FakeTemporaryRepository) Removed() bool

func (*FakeTemporaryRepository) Root

func (r *FakeTemporaryRepository) Root() string

Jump to

Keyboard shortcuts

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