tempfile

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoldenCtx added in v0.11.0

type GoldenCtx struct {
	Dir    string
	Update bool
}

func (GoldenCtx) CompareDirectory added in v0.11.0

func (g GoldenCtx) CompareDirectory(resultPath string) error

func (GoldenCtx) CompareGoldenFile added in v0.11.0

func (g GoldenCtx) CompareGoldenFile(path string, gotContent []byte) error

type GoldenDiffError added in v0.11.0

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

func (*GoldenDiffError) Error added in v0.11.0

func (e *GoldenDiffError) Error() string

type Path

type Path struct {
	BasePath string
	FileName string
	IsDir    bool
	Content  []byte
}

func (*Path) Create

func (p *Path) Create() error

type Paths added in v0.9.0

type Paths []Path

func ReplicateDirectory added in v0.9.0

func ReplicateDirectory(dir string, newBase string) (Paths, error)

func (Paths) CreateAll added in v0.9.0

func (ps Paths) CreateAll() error

Jump to

Keyboard shortcuts

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