NewServer is just a helper to create a new standard httptest.Server instance.
(t IrisTesty, app *iris.Application)
| 9 | // NewServer is just a helper to create a new standard |
| 10 | // httptest.Server instance. |
| 11 | func NewServer(t IrisTesty, app *iris.Application) *httptest.Server { |
| 12 | if err := app.Build(); err != nil { |
| 13 | t.Fatal(err) |
| 14 | return nil |
| 15 | } |
| 16 | |
| 17 | return httptest.NewServer(app) |
| 18 | } |