github.com/britannic/testutils

Go Test Utilities for Testing


License
BSD-2-Clause
Install
go get github.com/britannic/testutils

Documentation

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