helper

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFixtureFile

func ReadFixtureFile(t *testing.T, filename string) []byte

ReadFixtureFile returns the contents of the fixture file or fails.

func ReadGoldenFile

func ReadGoldenFile(t *testing.T, filename string) []byte

ReadGoldenFile returns the contents of the golden file or fails.

Types

type SomeFilesExistFS added in v0.13.0

type SomeFilesExistFS struct {
	Existing []string
}

SomeFilesExistFS is a mock filesystem where some files exist.

func (SomeFilesExistFS) Stat added in v0.13.0

func (fs SomeFilesExistFS) Stat(name string) (os.FileInfo, error)

Stat always returns a nil error.

Jump to

Keyboard shortcuts

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