test

package
v0.0.0-...-ffc1c0f Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expect

type Expect struct {
	Value any    `yaml:"-"`
	Error string `yaml:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*Expect) Equal

func (e *Expect) Equal(v1, v2 any) *Expect

数值比较

func (*Expect) Pass

func (e *Expect) Pass() bool

func (*Expect) ToEqual

func (e *Expect) ToEqual(v any) *Expect

ToEqual 数值比较

type TestClass

type TestClass struct {
	Name   string `yaml:"name,omitempty"`
	Status string `yaml:"status,omitempty"`

	Error []string `yaml:"expects,omitempty"`
	// contains filtered or unexported fields
}

func (*TestClass) Done

func (t *TestClass) Done()

func (*TestClass) Expect

func (t *TestClass) Expect(v any, desc string) *Expect

func (*TestClass) Pass

func (t *TestClass) Pass() bool

type TestManager

type TestManager struct {
	Status string       `yaml:"status,omitempty"`
	Cases  []*TestClass `yaml:"cases,omitempty"`
}

func (*TestManager) Done

func (tm *TestManager) Done(err error)

func (*TestManager) Pass

func (tm *TestManager) Pass() bool

func (*TestManager) Test

func (tm *TestManager) Test(l *lua.LState) int

Jump to

Keyboard shortcuts

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