1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00

publish v12.2.0-alpha7 version

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-02-25 20:17:02 +02:00
parent 37c766fef7
commit 70a73ef80b
16 changed files with 824 additions and 237 deletions

19
httptest/server.go Normal file
View File

@@ -0,0 +1,19 @@
package httptest
import (
"net/http/httptest"
"testing"
"github.com/kataras/iris/v12"
)
// NewServer is just a helper to create a new standard
// httptest.Server instance.
func NewServer(t *testing.T, app *iris.Application) *httptest.Server {
if err := app.Build(); err != nil {
t.Fatal(err)
return nil
}
return httptest.NewServer(app)
}