diff --git a/httptest/httptest.go b/httptest/httptest.go index 02433c75..df880b92 100644 --- a/httptest/httptest.go +++ b/httptest/httptest.go @@ -203,6 +203,10 @@ func Do(w http.ResponseWriter, r *http.Request, handler iris.Handler, irisConfig app.ContextPool.Release(ctx) } +// IrisTesty is an interface which all testing package should implement. +// The `httptest` standard package and `ginkgo` third-party module do implement this interface indeed. +// +// See the `New` package-level function for more. type IrisTesty interface { Cleanup(func()) Error(args ...any) diff --git a/httptest/server.go b/httptest/server.go index 65397d03..0b5665d7 100644 --- a/httptest/server.go +++ b/httptest/server.go @@ -1,8 +1,9 @@ package httptest import ( - "github.com/kataras/iris/v12" "net/http/httptest" + + "github.com/kataras/iris/v12" ) // NewServer is just a helper to create a new standard