MCPcopy Create free account
hub / github.com/devfeel/dotweb / SetMock

Method SetMock

dotweb.go:277–280  ·  view source on GitHub ↗

SetMock set mock logic

(mock Mock)

Source from the content-addressed store, hash-verified

275
276// SetMock set mock logic
277func (app *DotWeb) SetMock(mock Mock) {
278 app.Mock = mock
279 app.Logger().Debug("DotWeb Mock SetMock", LogTarget_HttpServer)
280}
281
282// SetExceptionHandle set custom error handler
283func (app *DotWeb) SetExceptionHandle(handler ExceptionHandle) {

Callers 1

mainFunction · 0.80

Calls 2

LoggerMethod · 0.95
DebugMethod · 0.65

Tested by

no test coverage detected