camlistore.org: camlistore.org/pkg/test/asserts Index | Files

package asserts

import "camlistore.org/pkg/test/asserts"

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

Index

Package Files

asserts.go

func Assert Uses

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

func AssertBool Uses

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

func AssertErrorContains Uses

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

func AssertInt Uses

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

func AssertNil Uses

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

func AssertString Uses

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

func Expect Uses

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

func ExpectBool Uses

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

func ExpectErrorContains Uses

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

func ExpectInt Uses

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

func ExpectNil Uses

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

func ExpectString Uses

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

Package asserts imports 2 packages (graph). Updated 2018-01-23. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).