Help us shape the future of Go! Take the 2026 Go Developer Survey

testutils

package module
v0.0.0-...-79647e5 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2016 License: BSD-2-Clause Imports: 6 Imported by: 0

README

testutils

import "github.com/britannic/testutils"

func Assert

func Assert(tb testing.TB, condition bool, msg string, v ...interface{})

Assert fails the test if the condition is false.

func Equals

func Equals(tb testing.TB, exp, act interface{})

Equals fails the test if exp is not equal to act.

func NotEquals

func NotEquals(tb testing.TB, exp, act interface{})

NotEquals fails the test if exp is equal to act.

func NotOK

func NotOK(tb testing.TB, err error)

NotOK fails the test if an err is nil.

func OK

func OK(tb testing.TB, err error)

OK fails the test if an err is not nil.


Generated by godoc2md

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(tb testing.TB, condition bool, msg string, v ...interface{})

Assert fails the test if the condition is false.

func Equals

func Equals(tb testing.TB, exp, act interface{})

Equals fails the test if exp is not equal to act.

func IsDrone

func IsDrone() bool

IsDrone is true when code is being tested on drone.io

func NotEquals

func NotEquals(tb testing.TB, exp, act interface{})

NotEquals fails the test if exp is equal to act.

func NotOK

func NotOK(tb testing.TB, err error)

NotOK fails the test if an err is nil.

func OK

func OK(tb testing.TB, err error)

OK fails the test if an err is not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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