MCPcopy
hub / github.com/fastify/fastify / endRouteHook

Function endRouteHook

test/route-hooks.test.js:9–15  ·  view source on GitHub ↗
(doneOrPayload, done, doneValue)

Source from the content-addressed store, hash-verified

7process.removeAllListeners('warning')
8
9function endRouteHook (doneOrPayload, done, doneValue) {
10 if (typeof doneOrPayload === 'function') {
11 doneOrPayload(doneValue)
12 } else {
13 done(doneValue)
14 }
15}
16
17function testExecutionHook (hook) {
18 test(`${hook}`, (t, testDone) => {

Callers 2

testExecutionHookFunction · 0.85
testBeforeHandlerHookFunction · 0.85

Calls 1

doneFunction · 0.50

Tested by

no test coverage detected