MCPcopy Create free account
hub / github.com/kataras/iris / NewServer

Function NewServer

httptest/server.go:11–18  ·  view source on GitHub ↗

NewServer is just a helper to create a new standard httptest.Server instance.

(t IrisTesty, app *iris.Application)

Source from the content-addressed store, hash-verified

9// NewServer is just a helper to create a new standard
10// httptest.Server instance.
11func 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}

Callers

nothing calls this directly

Calls 2

FatalMethod · 0.80
BuildMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…