MCPcopy
hub / github.com/revel/revel / startFakeBookingApp

Function startFakeBookingApp

fakeapp_test.go:138–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138func startFakeBookingApp() {
139 Init("prod", "github.com/revel/revel/testdata", "")
140
141 MainTemplateLoader = NewTemplateLoader([]string{ViewsPath, filepath.Join(RevelPath, "templates")})
142 if err := MainTemplateLoader.Refresh(); err != nil {
143 RevelLog.Fatal("Template error", "error", err)
144 }
145
146 registerControllers()
147
148 InitServerEngine(9000, GO_NATIVE_SERVER_ENGINE)
149 RaiseEvent(ENGINE_BEFORE_INITIALIZED, nil)
150 InitServer()
151
152 RaiseEvent(ENGINE_STARTED, nil)
153}

Callers 13

benchmarkRequestFunction · 0.85
TestFakeServerFunction · 0.85
TestOnAppStartFunction · 0.85
TestOnAppStopFunction · 0.85
TestBenchmarkCompressedFunction · 0.85
BenchmarkRouterFilterFunction · 0.85
TestRedirectFunction · 0.85
TestBenchmarkRenderFunction · 0.85
BenchmarkRenderChunkedFunction · 0.85

Calls 8

InitFunction · 0.85
NewTemplateLoaderFunction · 0.85
registerControllersFunction · 0.85
InitServerEngineFunction · 0.85
RaiseEventFunction · 0.85
InitServerFunction · 0.85
RefreshMethod · 0.65
FatalMethod · 0.65

Tested by

no test coverage detected