Documentation
¶
Overview ¶
Package ts provides Go packages testing utilities.
Index ¶
- func Error(t *testing.T, args ...interface{})
- func Errorf(t *testing.T, format string, args ...interface{})
- func Fatal(t *testing.T, args ...interface{})
- func Fatalf(t *testing.T, format string, args ...interface{})
- func Log(t *testing.T, args ...interface{})
- func Logf(t *testing.T, format string, args ...interface{})
- func PropVal(o reflect.Value, prop string) reflect.Value
- type TestCase
- func (p *TestCase) Call(fn interface{}, args ...interface{}) *TestCase
- func (p *TestCase) Equal(v interface{}) *TestCase
- func (p *TestCase) Init(result ...interface{}) *TestCase
- func (p *TestCase) Next() *TestCase
- func (p *TestCase) PropEqual(prop string, v interface{}) *TestCase
- func (p *TestCase) With(i int) *TestCase
- type Testing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Log ¶
Log formats its arguments using default formatting, analogous to Print(), and records the text in the error log.
Types ¶
type TestCase ¶ added in v1.10.6
type TestCase struct {
// contains filtered or unexported fields
}
TestCase represents a test case.
type Testing ¶ added in v1.10.6
type Testing struct {
// contains filtered or unexported fields
}
Testing represents a testing object.
Click to show internal directories.
Click to hide internal directories.