Adding leak test framework (#2254)

This commit is contained in:
karthic rao
2016-07-26 09:09:14 +05:30
committed by Harshavardhana
parent a2b6f0524d
commit 530ed67b59
2 changed files with 156 additions and 2 deletions
+2 -2
View File
@@ -46,9 +46,9 @@ func init() {
initNSLock()
}
// The Argument to TestServer should satidy the interface.
// Golang Testing.T and Testing.B, and gocheck.C satisfy the interface.
// TestErrHandler - Golang Testing.T and Testing.B, and gocheck.C satisfy this interface.
// This makes it easy to run the TestServer from any of the tests.
// Using this interface, functionalities to be used in tests can be made generalized, and can be integrated in benchmarks/unit tests/go check suite tests.
type TestErrHandler interface {
Error(args ...interface{})
Errorf(format string, args ...interface{})