Documentation ¶
Overview ¶
Package unittest provides suite structure based unit tests for Go.
Index ¶
- func RunTestSuite(suite interface{}, t *testing.T)
- type TestSuite
- func (s *TestSuite) AssertEqual(expected, actual interface{})
- func (s *TestSuite) AssertIsNil(actual interface{})
- func (s *TestSuite) AssertIsNotNil(actual interface{})
- func (s *TestSuite) Error(args ...interface{})
- func (s *TestSuite) Errorf(format string, args ...interface{})
- func (s *TestSuite) Fatal(args ...interface{})
- func (s *TestSuite) Fatalf(format string, args ...interface{})
- func (s *TestSuite) Initialize(t *testing.T)
- func (s *TestSuite) Logf(format string, args ...interface{})
- func (s *TestSuite) T() *testing.T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Initialize ¶
Initialize the test suite.
Click to show internal directories.
Click to hide internal directories.