tempfile

package
v0.0.0-...-ec8e592 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 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

type GoldenCtx struct {
	Dir    string
	Update bool
}

func (GoldenCtx) CompareDirectory

func (g GoldenCtx) CompareDirectory(resultPath string) error

func (GoldenCtx) CompareGoldenFile

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

type GoldenDiffError

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

func (*GoldenDiffError) Error

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

type Paths []Path

func ReplicateDirectory

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

func (Paths) CreateAll

func (ps Paths) CreateAll() error

Jump to

Keyboard shortcuts

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