asserts

package
v0.0.0-...-d6cb8d1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package asserts provides a bad implementation of test predicate helpers. This package should either go away or dramatically improve.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t *testing.T, got bool, what string)

func AssertBool

func AssertBool(t *testing.T, expect, got bool, what string)

func AssertErrorContains

func AssertErrorContains(t *testing.T, err error, substr, msg string)

func AssertInt

func AssertInt(t *testing.T, expect, got int, what string)

func AssertNil

func AssertNil(t *testing.T, v interface{}, what string)

func AssertString

func AssertString(t *testing.T, expect, got string, what string)

func Expect

func Expect(t *testing.T, got bool, what string)

func ExpectBool

func ExpectBool(t *testing.T, expect, got bool, what string)

func ExpectErrorContains

func ExpectErrorContains(t *testing.T, err error, substr, msg string)

func ExpectInt

func ExpectInt(t *testing.T, expect, got int, what string)

func ExpectNil

func ExpectNil(t *testing.T, v interface{}, what string)

func ExpectString

func ExpectString(t *testing.T, expect, got string, what string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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