internal

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCommandSucceeds

func AssertCommandSucceeds(t *testing.T, err error, cmdDesc string)

func AssertDirExists

func AssertDirExists(t *testing.T, p *Project, path string)

func AssertFileExists

func AssertFileExists(t *testing.T, p *Project, path string)

func AssertFilesExist

func AssertFilesExist(t *testing.T, p *Project, paths []string)

func AssertGoVetPasses

func AssertGoVetPasses(t *testing.T, p *Project)

func AssertOutputContains

func AssertOutputContains(t *testing.T, output, expected string)

func RunCLI

func RunCLI(t *testing.T, binary, workDir string, env []string, args ...string) error

func RunCommand

func RunCommand(t *testing.T, cmdName, workDir string, env []string, args ...string) error

func RunCommandOutput

func RunCommandOutput(t *testing.T, cmdName, workDir string, env []string, args ...string) (string, error)

Types

type Project

type Project struct {
	Dir        string
	Name       string
	T          *testing.T
	BinaryPath string
	Database   string
}

func NewProject

func NewProject(t *testing.T, andurelBinary string) *Project

func NewProjectWithDatabase

func NewProjectWithDatabase(t *testing.T, andurelBinary, database string) *Project

func (*Project) DirExists

func (p *Project) DirExists(path string) bool

func (*Project) FileExists

func (p *Project) FileExists(path string) bool

func (*Project) Generate

func (p *Project) Generate(args ...string) error

func (*Project) GoBuild

func (p *Project) GoBuild(target string) error

func (*Project) GoVet

func (p *Project) GoVet() error

func (*Project) Scaffold

func (p *Project) Scaffold(args ...string) error

Jump to

Keyboard shortcuts

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