types

package
v1.0.3459-e90fb4e Latest Latest
Warning

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

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

Documentation

Overview

Package types contains various interfaces for writing tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestingTB

type TestingTB interface {
	Cleanup(func())
	Fail()
	FailNow()
	Failed() bool
	Fatal(args ...interface{})
	Helper()
	Log(args ...interface{})
	Logf(format string, args ...interface{})
	Name() string
	Skip(args ...interface{})
}

TestingTB is an interface that describes the implementation of the testing object. Using an interface that describes testing.TB instead of the actual implementation allows us to use the utils with other runners (e.g. use with ginkgo : https://godoc.org/github.com/onsi/ginkgo#GinkgoT)

Jump to

Keyboard shortcuts

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