MCPcopy Create free account
hub / github.com/fastify/fastify / hasConstraintStrategy

Function hasConstraintStrategy

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

Source from the content-addressed store, hash-verified

130 }
131
132 function hasConstraintStrategy (strategyName) {
133 return router.hasConstraintStrategy(strategyName)
134 }
135
136 function isAsyncConstraint () {
137 return router.constrainer.asyncStrategiesInUse.size > 0

Callers

nothing calls this directly

Calls 1

hasConstraintStrategyMethod · 0.80

Tested by

no test coverage detected