internal

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 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)

AssertCommandSucceeds performs assert command succeeds.

func AssertDirExists

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

AssertDirExists performs assert dir exists.

func AssertFileContains added in v1.0.0

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

AssertFileContains performs assert file contains.

func AssertFileExists

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

AssertFileExists performs assert file exists.

func AssertFilesExist

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

AssertFilesExist performs assert files exist.

func AssertGoVetPasses

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

AssertGoVetPasses performs assert go vet passes.

func AssertOutputContains

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

AssertOutputContains performs assert output contains.

func RunCLI

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

RunCLI runs CLI.

func RunCommand

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

RunCommand runs command.

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)

RunCommandOutput runs command output.

Types

type Project

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

Project represents project.

func NewProject

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

NewProject creates a new project.

func NewProjectWithDatabase

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

NewProjectWithDatabase creates a new project with database.

func (*Project) DirExists

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

DirExists performs the dir exists operation.

func (*Project) FileExists

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

FileExists performs the file exists operation.

func (*Project) Generate

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

Generate performs the generate operation.

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

GoBuild performs the go build operation.

func (*Project) GoVet

func (p *Project) GoVet() error

GoVet performs the go vet operation.

func (*Project) Scaffold

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

Scaffold performs the scaffold operation.

Jump to

Keyboard shortcuts

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