te

package
v0.0.0-...-d4b4dfb Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayFailMessage

func DisplayFailMessage(msg string, space int)

func DisplaySuccessMessage

func DisplaySuccessMessage(msg string, space int)

func DisplayTestFile

func DisplayTestFile(filename string, space int)

func DisplayTestTitle

func DisplayTestTitle(title string, space int)

Types

type CompareArrayType

type CompareArrayType interface {
	[]uint8 | []string
}

type CompareType

type CompareType interface {
	bool | int | float64 | string | rune
}

type Te

type Te struct {
	CurrentTestName  string
	CurrentTestValue interface{}
	CurrentTestType  reflect.Kind
	// contains filtered or unexported fields
}

func Init

func Init() *Te

func (*Te) AfterAll

func (t *Te) AfterAll(fn func())

func (*Te) AfterEach

func (t *Te) AfterEach(fn func())

func (*Te) BeforeAll

func (t *Te) BeforeAll(fn func())

func (*Te) BeforeEach

func (t *Te) BeforeEach(fn func())

func (*Te) Describe

func (t *Te) Describe(name string, fn func())

func (*Te) Exit

func (t *Te) Exit()

func (*Te) Expect

func (t *Te) Expect(i interface{}) *Te

func (*Te) It

func (t *Te) It(name string, fn func())

func (*Te) NotToBe

func (t *Te) NotToBe(i interface{})

func (*Te) Test

func (t *Te) Test(name string, fn func())

func (*Te) ToBe

func (t *Te) ToBe(i interface{})

Jump to

Keyboard shortcuts

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