assert

package module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 2 Imported by: 0

README

assert

Go Report Card

This package provides a simple assert extension by using reflect kungfu.

Table of Contents

Installation

From Source
go get -u github.com/andygeiss/assert

Usage

func Test_Given_Nothing_When_Calling_Foo_Then_Return_42_And_No_Error(t *testing.T) {
    res, err := foo()
    assert.That(t, err, nil)
    assert.That(t, res, 42)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func That

func That(name string, t *testing.T, got, expected interface{})

That ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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