testutil

package
v1.11.0-b4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyDstDir uint32 = 1 << iota
	NonExistsDstDir
	NonExistsSrcDir
)

Variables

View Source
var TestAppInfo = *ds.NewAppInfo().
	WithBuildOS(runtime.GOOS).
	WithBuildTime(time.Now().String()).
	WithVersion("1.0").
	WithBuildCommit("nocommit")

Functions

func GetPathToSrc

func GetPathToSrc() string

Types

type Tmps

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

func InitTmps

func InitTmps() *Tmps

func (*Tmps) AddTempDir

func (tmp *Tmps) AddTempDir(basepath ...string) (string, error)

func (*Tmps) CreateDirs

func (tmp *Tmps) CreateDirs(flags uint32) (string, string, error)

func (*Tmps) Defer

func (tmp *Tmps) Defer()

Jump to

Keyboard shortcuts

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