mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
Clear staff
This commit is contained in:
parent
e298ddcc72
commit
d68e894fba
@ -24,8 +24,8 @@
|
|||||||
// func(*testing.T)).
|
// func(*testing.T)).
|
||||||
//
|
//
|
||||||
// Regular expression to select test suites specified command-line
|
// Regular expression to select test suites specified command-line
|
||||||
// command-line argument "-run". Regular expression to select the
|
// argument "-run". Regular expression to select the methods
|
||||||
// methods of test suites specified command-line argument "-m".
|
// of test suites specified command-line argument "-m".
|
||||||
//
|
//
|
||||||
// A crude example:
|
// A crude example:
|
||||||
// // Basic imports
|
// // Basic imports
|
||||||
|
@ -54,7 +54,6 @@ func Run(t *testing.T, suite TestingSuite) {
|
|||||||
if setupTestSuite, ok := suite.(SetupTestSuite); ok {
|
if setupTestSuite, ok := suite.(SetupTestSuite); ok {
|
||||||
setupTestSuite.SetupTest()
|
setupTestSuite.SetupTest()
|
||||||
}
|
}
|
||||||
t.Logf("Call test %q", method.Name)
|
|
||||||
method.Func.Call([]reflect.Value{reflect.ValueOf(suite)})
|
method.Func.Call([]reflect.Value{reflect.ValueOf(suite)})
|
||||||
if tearDownTestSuite, ok := suite.(TearDownTestSuite); ok {
|
if tearDownTestSuite, ok := suite.(TearDownTestSuite); ok {
|
||||||
tearDownTestSuite.TearDownTest()
|
tearDownTestSuite.TearDownTest()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user