This commit is contained in:
Gerasimos (Makis) Maropoulos 2022-10-22 18:06:18 +03:00
parent c1fa064d98
commit 7761069873
No known key found for this signature in database
GPG Key ID: 403EEB7885C79503
2 changed files with 6 additions and 1 deletions

View File

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

View File

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