testmod

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Test

type Test struct {
	TmpDir string
}

func (*Test) AssertContains

func (*Test) AssertContains(s, substr interface{}) interface{}

func (*Test) AssertEq

func (*Test) AssertEq(actual, expected interface{}) interface{}

func (*Test) AssertFalse

func (*Test) AssertFalse(val interface{}) interface{}

func (*Test) AssertNeq

func (*Test) AssertNeq(actual, expected interface{}) interface{}

func (*Test) AssertNil

func (*Test) AssertNil(val interface{}) interface{}

func (*Test) AssertTrue

func (*Test) AssertTrue(val interface{}) interface{}

func (*Test) Fail

func (*Test) Fail(msg interface{}) interface{}

func (*Test) Run

func (*Test) Run(command string) interface{}

Run executes a command and returns a hash with status, output, and lines.

func (*Test) Skip

func (*Test) Skip(reason interface{}) interface{}

func (*Test) Tmpdir

func (t *Test) Tmpdir() interface{}

func (*Test) WriteFile

func (*Test) WriteFile(path, content string) interface{}

WriteFile writes content to a file, creating it with 0644 permissions.

Jump to

Keyboard shortcuts

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