internal

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 8 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 RunCommandExpectError added in v1.0.0

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

RunCommandExpectError runs a command that is expected to fail, suppressing failure logs.

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
	CSS          string
	SharedBinDir string
}

func NewProject

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

func NewProjectWithDatabase

func NewProjectWithDatabase(t *testing.T, andurelBinary, sharedBinDir, 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) GenerateExpectError added in v1.0.0

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

GenerateExpectError runs a generate command that is expected to fail, suppressing failure logs.

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