unittest

package
v0.0.0-...-171db1f Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package unittest provides suite structure based unit tests for Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTestSuite

func RunTestSuite(suite interface{}, t *testing.T)

Run a test suite.

Types

type TestSuite

type TestSuite struct {
	// contains filtered or unexported fields
}

Test suite.

func (*TestSuite) AssertEqual

func (s *TestSuite) AssertEqual(expected, actual interface{})

func (*TestSuite) AssertIsNil

func (s *TestSuite) AssertIsNil(actual interface{})

func (*TestSuite) AssertIsNotNil

func (s *TestSuite) AssertIsNotNil(actual interface{})

func (*TestSuite) Error

func (s *TestSuite) Error(args ...interface{})

func (*TestSuite) Errorf

func (s *TestSuite) Errorf(format string, args ...interface{})

func (*TestSuite) Fatal

func (s *TestSuite) Fatal(args ...interface{})

func (*TestSuite) Fatalf

func (s *TestSuite) Fatalf(format string, args ...interface{})

func (*TestSuite) Initialize

func (s *TestSuite) Initialize(t *testing.T)

Initialize the test suite.

func (*TestSuite) Logf

func (s *TestSuite) Logf(format string, args ...interface{})

func (*TestSuite) T

func (s *TestSuite) T() *testing.T

Jump to

Keyboard shortcuts

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