1
0
mirror of https://github.com/kataras/iris.git synced 2026-06-15 18:13:35 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-10-22 18:06:18 +03:00
parent c1fa064d98
commit 7761069873
2 changed files with 6 additions and 1 deletions
+4
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)
+2 -1
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