test

package
v0.0.0-...-9853328 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(ok bool, msg ...string)

Types

type BatchOpt

type BatchOpt struct {
	Path    string
	Filters []string
}

type TestSet

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

func Batch

func Batch(opt BatchOpt) *TestSet

func (*TestSet) Assert

func (set *TestSet) Assert(err error)

func (*TestSet) AssertEqual

func (set *TestSet) AssertEqual(want, got int)

func (*TestSet) AssertNil

func (set *TestSet) AssertNil(v any)

func (*TestSet) FRange

func (set *TestSet) FRange(fn func(s *TestSet, filename, data string) error)

func (*TestSet) Range

func (set *TestSet) Range(fn func(data string) error)

func (*TestSet) TRange

func (set *TestSet) TRange(fn func(s *TestSet, data string) error)

Jump to

Keyboard shortcuts

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