Documentation ¶
Index ¶
- Constants
- func LoadPackage(env *lisp.LEnv) *lisp.LVal
- type Test
- type TestSuite
- func (s *TestSuite) Add(t *Test) error
- func (s *TestSuite) AddBenchmark(b *Test) error
- func (s *TestSuite) Benchmark(i int) *Test
- func (s *TestSuite) Benchmarks() []string
- func (s *TestSuite) Len() int
- func (s *TestSuite) MacroAssertEqual(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) MacroAssertNil(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) MacroAssertNot(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) MacroAssertNotNil(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) MacroAssertNumEq(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) MacroAssertStringEq(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) MacroBenchmarkSimple(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) MacroTestLet(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) MacroTestLetSeq(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) Macros() []*libutil.Builtin
- func (s *TestSuite) OpBenchmark(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) OpTest(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func (s *TestSuite) Ops() []*libutil.Builtin
- func (s *TestSuite) Test(i int) *Test
- func (s *TestSuite) Tests() []string
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 ¶
Types ¶
type TestSuite ¶
type TestSuite struct {
// contains filtered or unexported fields
}
TestSuite is an ordered set of named tests.
func EnvTestSuite ¶
func NewTestSuite ¶
func NewTestSuite() *TestSuite
func (*TestSuite) AddBenchmark ¶ added in v1.13.0
func (*TestSuite) Benchmarks ¶ added in v1.13.0
func (*TestSuite) MacroAssertEqual ¶
func (*TestSuite) MacroAssertNil ¶
func (*TestSuite) MacroAssertNot ¶
func (*TestSuite) MacroAssertNotNil ¶
func (*TestSuite) MacroAssertNumEq ¶
func (*TestSuite) MacroAssertStringEq ¶
func (*TestSuite) MacroBenchmarkSimple ¶ added in v1.13.0
func (*TestSuite) MacroTestLet ¶
func (*TestSuite) MacroTestLetSeq ¶
func (*TestSuite) OpBenchmark ¶ added in v1.13.0
Click to show internal directories.
Click to hide internal directories.