testing

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrViolationIs = TestCaseViolationError{Condition: "Is"}
	ErrViolationAs = TestCaseViolationError{Condition: "As"}
)

Functions

func Init

func Init(t *testing.T, si ...stands.Interface) map[string]stands.State

func LoadFixture added in v0.5.2

func LoadFixture(t *testing.T, filepath string) string

Types

type TestCase

type TestCase struct {
	MustFailIsErr error
	MustFailAsErr any
	MustFail      bool

	Skip  bool
	Debug bool
	Fail  bool
	// contains filtered or unexported fields
}

func (TestCase) CheckError

func (tc TestCase) CheckError(t *testing.T, err error)

func (TestCase) Init

func (tc TestCase) Init(t *testing.T, si ...stands.Interface) map[string]stands.State

type TestCaseViolationError

type TestCaseViolationError struct {
	Condition string
}

func (TestCaseViolationError) Error

func (e TestCaseViolationError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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