testutils

package
v0.63.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneToTempDir

func CloneToTempDir(t *testing.T, repoName string) string

CloneToTempDir will clone given nestoca repo to a temporary directory and return its absolute path.

Types

type DiffType added in v0.46.2

type DiffType int
const (
	Missing DiffType = iota
	Unexpected
	Different
)

type FileDiff added in v0.46.2

type FileDiff struct {
	Path string
	Type DiffType
	Diff []diffmatchpatch.Diff
}

func (FileDiff) String added in v0.46.2

func (fd FileDiff) String() string

type FileDiffs added in v0.46.2

type FileDiffs []FileDiff

func CompareDirectories added in v0.46.2

func CompareDirectories(expectedDir, actualDir string) (FileDiffs, error)

func (FileDiffs) String added in v0.46.2

func (fds FileDiffs) String() string

Jump to

Keyboard shortcuts

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