test

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TempDir

type TempDir struct {
	Root      string
	Quickhook string
	// contains filtered or unexported fields
}

func NewTempDir

func NewTempDir(t *testing.T, depth int) TempDir

Depth should be the depth of the tests from the package root: this is needed to correctly find the built quickhook binary for integration testing.

func (*TempDir) ExecQuickhook

func (tempDir *TempDir) ExecQuickhook(arg ...string) (string, error)

func (*TempDir) MkdirAll

func (tempDir *TempDir) MkdirAll(relativePath ...string)

func (*TempDir) NewCommand

func (tempDir *TempDir) NewCommand(name string, arg ...string) *exec.Cmd

func (*TempDir) RequireExec

func (tempDir *TempDir) RequireExec(name string, arg ...string)

func (*TempDir) WriteFile

func (tempDir *TempDir) WriteFile(relativePath []string, data string)

Jump to

Keyboard shortcuts

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