package
Version:
v1.10.6
Opens a new window with list of versions in this module.
Published: Jul 10, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package ts provides Go packages testing utilities.
-
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
-
type Testing
func Error(t *testing.T, args ...interface{})
Error is equivalent to Log() followed by Fail().
Errorf is equivalent to Logf() followed by Fail().
func Fatal(t *testing.T, args ...interface{})
Fatal is equivalent to Log() followed by FailNow().
Fatalf is equivalent to Logf() followed by FailNow().
func Log(t *testing.T, args ...interface{})
Log formats its arguments using default formatting, analogous to Print(),
and records the text in the error log.
Logf formats its arguments according to the format, analogous to Printf(),
and records the text in the error log.
PropVal returns property value of an object.
TestCase represents a test case.
Equal checks current output value.
PropEqual checks property of current output value.
With set current output value to check.
Testing represents a testing object.
New creates a testing object.
Call creates a test case, and then calls a function.
Case creates a test case.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.