Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetServerContext ¶ added in v0.1.3
SetServerContext will override the server context and inject the given context into incoming requests. The effect of this function is global.
func SetupBenchmarkContext ¶
SetupBenchmarkContext will start up dev_appserver.py via `appengine/aetest` and inject the context into the marvin server so users can call `marvin.NewServer(svc).ServeHTTP(w, r)` within tests. This call is very expensive and should be used sparingly in your test suite.
func SetupTestContext ¶
SetupTestContext will start up dev_appserver.py via `appengine/aetest` and inject the context into the marvin server so users can call `marvin.NewServer(svc).ServeHTTP(w, r)` within tests. This call is very expensive and should be used sparingly in your test suite.
func SetupTestContextWithContext ¶
SetupTestContextWithContext will start up dev_appserver.py via `appengine/aetest` and inject the context into the marvin server so users can call `marvin.NewServer(svc).ServeHTTP(w, r)` within tests. This function also returns the server context for use outside the server. This call is very expensive and should be used sparingly in your test suite.
Types ¶
This section is empty.