testutil

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(expected, actual interface{}) []string

Types

type TestFile

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

func NewFixture

func NewFixture(t *testing.T, name string) *TestFile

func NewGoldenFile

func NewGoldenFile(t *testing.T, name string) *TestFile

func (*TestFile) AsFile

func (tf *TestFile) AsFile() *os.File

func (*TestFile) Load

func (tf *TestFile) Load() string

func (*TestFile) Path

func (tf *TestFile) Path() string

func (*TestFile) Write

func (tf *TestFile) Write(content string)

Jump to

Keyboard shortcuts

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