Documentation ¶
Index ¶
- func RunTest(unit interface{}, t *testing.T)
- type Batch
- func (self *Batch) AssertEquals(lhs interface{}) *Batch
- func (self *Batch) AssertFalse() *Batch
- func (self *Batch) AssertNil() *Batch
- func (self *Batch) AssertNotNil() *Batch
- func (self *Batch) AssertTrue() *Batch
- func (self *Batch) ExpectEquals(lhs interface{}) *Batch
- func (self *Batch) ExpectFalse() *Batch
- func (self *Batch) ExpectNil() *Batch
- func (self *Batch) ExpectNotNil() *Batch
- func (self *Batch) ExpectTrue() *Batch
- func (self *Batch) Skip(offset int) *Batch
- type Case
- func (self *Case) AssertEquals(lhs, rhs interface{})
- func (self *Case) AssertFalse(rhs bool)
- func (self *Case) AssertNil(rhs interface{})
- func (self *Case) AssertNotNil(rhs interface{})
- func (self *Case) AssertPanic(lhs, fn func())
- func (self *Case) AssertPanicCall(lhs, call interface{}, args ...interface{})
- func (self *Case) AssertTrue(rhs bool)
- func (self *Case) Batch(returnVals ...interface{}) *Batch
- func (self *Case) ExpectEquals(lhs, rhs interface{})
- func (self *Case) ExpectFalse(rhs bool)
- func (self *Case) ExpectNil(rhs interface{})
- func (self *Case) ExpectNotNil(rhs interface{})
- func (self *Case) ExpectPanic(lhs interface{})
- func (self *Case) ExpectTrue(rhs bool)
- func (self *Case) Fail()
- func (self *Case) Run(fn func(c *Case)) (fail bool)
- func (self *Case) String() string
- func (self *Case) What(format string, args ...interface{}) *Case
- type Test
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
func (*Batch) AssertEquals ¶
func (*Batch) AssertFalse ¶
func (*Batch) AssertNotNil ¶
func (*Batch) AssertTrue ¶
func (*Batch) ExpectEquals ¶
func (*Batch) ExpectFalse ¶
func (*Batch) ExpectNotNil ¶
func (*Batch) ExpectTrue ¶
type Case ¶
func (*Case) AssertEquals ¶
func (self *Case) AssertEquals(lhs, rhs interface{})
func (*Case) AssertFalse ¶
func (*Case) AssertNotNil ¶
func (self *Case) AssertNotNil(rhs interface{})
func (*Case) AssertPanic ¶
func (self *Case) AssertPanic(lhs, fn func())
func (*Case) AssertPanicCall ¶
func (self *Case) AssertPanicCall(lhs, call interface{}, args ...interface{})
func (*Case) AssertTrue ¶
func (*Case) ExpectEquals ¶
func (self *Case) ExpectEquals(lhs, rhs interface{})
func (*Case) ExpectFalse ¶
func (*Case) ExpectNotNil ¶
func (self *Case) ExpectNotNil(rhs interface{})
func (*Case) ExpectPanic ¶
func (self *Case) ExpectPanic(lhs interface{})
Call the func MUST to be in defer statement.
func (*Case) ExpectTrue ¶
Click to show internal directories.
Click to hide internal directories.