testx

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(d time.Duration) string

func Install

func Install(v *vm.VM, r *Registry)

func RegisterTestPreload

func RegisterTestPreload(v *vm.VM)

func StandaloneReporter

func StandaloneReporter(w *os.File) func(Result)

Types

type Registry

type Registry struct {
	Filter   string
	FailFast bool
	ListOnly bool
	OnResult func(Result)

	Results []Result
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Aborted

func (r *Registry) Aborted() bool

func (*Registry) Counts

func (r *Registry) Counts() (pass, fail, skip int)

func (*Registry) Failed

func (r *Registry) Failed() bool

type Result

type Result struct {
	Name     string
	Status   Status
	Message  string
	Stack    string
	Duration time.Duration
}

type Status

type Status int
const (
	StatusPass Status = iota
	StatusFail
	StatusSkip
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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