testing

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package testing provides a testing object T with functions for classical unit testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize added in v0.1.15

func Normalize(s string) string

Types

type Map

type Map map[string]interface{}

type T

type T struct {
	Base *testing.T
}

func MakeT

func MakeT(tbase *testing.T) *T

func SetUp

func SetUp(tbase *testing.T) *T

func (*T) AssertEqual

func (t *T) AssertEqual(have interface{}, want interface{})

func (*T) AssertFileEqual added in v0.1.15

func (t *T) AssertFileEqual(havep, wantp string)

func (*T) AssertFileLinesMatch added in v0.1.15

func (t *T) AssertFileLinesMatch(havep, wantp string, ignore []string)

func (*T) AssertFilesMatch added in v0.1.15

func (t *T) AssertFilesMatch(havep, wantp string, cfg m.Map)

func (*T) AssertMatch

func (t *T) AssertMatch(have string, want string)

func (*T) ClearFiles added in v0.1.15

func (t *T) ClearFiles(filep string)

func (*T) LogErr

func (t *T) LogErr(txt string, fields Map)

func (*T) Run

func (t *T) Run(name string, f func(*T)) bool

Jump to

Keyboard shortcuts

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