Help us shape the future of Go! Take the 2026 Go Developer Survey

libtesting

package
v1.16.13 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPackageName = "testing"

DeafultPackageName is the package name used by LoadPackage.

View Source
const DefaultSuiteSymbol = "test-suite"

Variables

This section is empty.

Functions

func LoadPackage

func LoadPackage(env *lisp.LEnv) *lisp.LVal

LoadPackage adds the time package to env

Types

type Test

type Test struct {
	Fun  *lisp.LVal
	Name string
}

type TestSuite

type TestSuite struct {
	// contains filtered or unexported fields
}

TestSuite is an ordered set of named tests.

func EnvTestSuite

func EnvTestSuite(env *lisp.LEnv) *TestSuite

func NewTestSuite

func NewTestSuite() *TestSuite

func (*TestSuite) Add

func (s *TestSuite) Add(t *Test) error

func (*TestSuite) AddBenchmark added in v1.13.0

func (s *TestSuite) AddBenchmark(b *Test) error

func (*TestSuite) Benchmark added in v1.13.0

func (s *TestSuite) Benchmark(i int) *Test

func (*TestSuite) Benchmarks added in v1.13.0

func (s *TestSuite) Benchmarks() []string

func (*TestSuite) Len

func (s *TestSuite) Len() int

func (*TestSuite) MacroAssertEqual

func (s *TestSuite) MacroAssertEqual(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) MacroAssertNil

func (s *TestSuite) MacroAssertNil(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) MacroAssertNot

func (s *TestSuite) MacroAssertNot(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) MacroAssertNotNil

func (s *TestSuite) MacroAssertNotNil(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) MacroAssertNumEq

func (s *TestSuite) MacroAssertNumEq(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) MacroAssertStringEq

func (s *TestSuite) MacroAssertStringEq(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) MacroBenchmarkSimple added in v1.13.0

func (s *TestSuite) MacroBenchmarkSimple(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) MacroTestLet

func (s *TestSuite) MacroTestLet(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) MacroTestLetSeq

func (s *TestSuite) MacroTestLetSeq(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) Macros

func (s *TestSuite) Macros() []*libutil.Builtin

func (*TestSuite) OpBenchmark added in v1.13.0

func (s *TestSuite) OpBenchmark(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) OpTest

func (s *TestSuite) OpTest(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal

func (*TestSuite) Ops

func (s *TestSuite) Ops() []*libutil.Builtin

func (*TestSuite) Test

func (s *TestSuite) Test(i int) *Test

func (*TestSuite) Tests added in v1.13.0

func (s *TestSuite) Tests() []string

Jump to

Keyboard shortcuts

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