mirror of https://github.com/stretchr/testify.git
improve: move comment to msgAndArgs-param in test
parent
855d1c6784
commit
130d340262
|
@ -259,14 +259,12 @@ func (suite *SuiteTester) TestSubtest() {
|
||||||
|
|
||||||
func (suite *SuiteTester) TearDownSubTest() {
|
func (suite *SuiteTester) TearDownSubTest() {
|
||||||
suite.TearDownSubTestRunCount++
|
suite.TearDownSubTestRunCount++
|
||||||
// We should get the *testing.T for the test that is to be torn down
|
suite.Contains(suite.T().Name(), "subtest", "We should get the *testing.T for the test that is to be torn down")
|
||||||
suite.Contains(suite.T().Name(), "subtest")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (suite *SuiteTester) SetupSubTest() {
|
func (suite *SuiteTester) SetupSubTest() {
|
||||||
suite.SetupSubTestRunCount++
|
suite.SetupSubTestRunCount++
|
||||||
// We should get the *testing.T for the test that is to be set up
|
suite.Contains(suite.T().Name(), "subtest", "We should get the *testing.T for the test that is to be set up")
|
||||||
suite.Contains(suite.T().Name(), "subtest")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type SuiteSkipTester struct {
|
type SuiteSkipTester struct {
|
||||||
|
|
Loading…
Reference in New Issue