*: 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:
zimulala
2016-04-07 20:53:45 +08:00
parent eb941fb12f
commit 08034540f0
80 changed files with 5117 additions and 26 deletions

View File

@ -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