MCPcopy
hub / github.com/fastify/fastify / hasConstraintStrategy

Function hasConstraintStrategy

lib/route.js:138–140  ·  view source on GitHub ↗
(strategyName)

Source from the content-addressed store, hash-verified

136 }
137
138 function hasConstraintStrategy (strategyName) {
139 return router.hasConstraintStrategy(strategyName)
140 }
141
142 function isAsyncConstraint () {
143 return router.constrainer.asyncStrategiesInUse.size > 0

Callers

nothing calls this directly

Calls 1

hasConstraintStrategyMethod · 0.80

Tested by

no test coverage detected