testing

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 2 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

This section is empty.

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) AssertMatch

func (t *T) AssertMatch(have string, want 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