test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(t *testing.T, path string, level log.Priority, name string) (logger log.Logger, fClose func(), err error)

Types

type Case

type Case struct {
	Func func(t *testing.T, opts ...interface{})
}

Case is a test case.

type Suite

type Suite []Case

Suite is a collection of test cases.

func (Suite) Runner

func (ts Suite) Runner(t *testing.T, opts ...interface{})

Runner runs every test case in the receiver test suite.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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