*: Add leak test
* *: add leak test and tiny clean up * *: unify test format and add leak test Conflicts: store/localstore/compactor_test.go mysql/error_test.go *: add leak test
This commit is contained in:
@ -17,6 +17,7 @@ import (
|
||||
"testing"
|
||||
|
||||
. "github.com/pingcap/check"
|
||||
"github.com/pingcap/tidb/util/testleak"
|
||||
)
|
||||
|
||||
func TestT(t *testing.T) {
|
||||
@ -29,6 +30,7 @@ type testStringUtilSuite struct {
|
||||
}
|
||||
|
||||
func (s *testStringUtilSuite) TestRemoveUselessBackslash(c *C) {
|
||||
defer testleak.AfterTest(c)()
|
||||
table := []struct {
|
||||
str string
|
||||
expect string
|
||||
|
||||
Reference in New Issue
Block a user