gounit

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: MIT Imports: 2 Imported by: 0

README

GoUnit

GoDoc

GoUnit is a testing helper library for Go.

Getting started
  • API documentation and examples are available via godoc.
Installation

To install this package, you need to install Go and setup your Go workspace on your computer. The simplest way to install the library is to run:

$ go get gopkg.in/l-vitaly/gounit.v1
Contribute

Please refer to CONTRIBUTING.md for information on how to contribute to GoUnit.

MIT License

Copyright (c) 2016 Lobchuk Vitaly vitaly@lobchuk.ru

See the file LICENSE for copying permission.

Documentation

Index

Constants

View Source
const (
	EmptyMessage = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GoUnit

type GoUnit interface {
	AssertArrayHasKey(key interface{}, array interface{}, message string)
	AssertContains(value interface{}, array interface{}, message string)
	AssertCount(count int, array interface{}, message string)
	AssertDirectoryExists(dir string, message string)
	AssertFileExists(file string, message string)
	AssertEmpty(actual interface{}, message string)
	AssertEquals(expected interface{}, actual interface{}, message string)
	AssertTrue(cond bool, message string)
	AssertFalse(cond bool, message string)
	AssertFileEquals(expected string, actual string, message string)
	AssertGreaterThan(expected, actual int, message string)
	AssertGreaterThanOrEqual(expected, actual int, message string)
	AssertLessThan(expected, actual int, message string)
	AssertLessThanOrEqual(expected, actual int, message string)
	AssertError(err error, message string)
	AssertNotError(err error, message string)
}

func New

func New(tb testing.TB) GoUnit

Jump to

Keyboard shortcuts

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