(instance, opts, next)
| 173 | |
| 174 | t.after(() => fastify.close()) |
| 175 | const bazInstance = function (instance, opts, next) { |
| 176 | instance.register(barInstance, { prefix: 'baz' }) |
| 177 | |
| 178 | instance.setGenReqId(function (req) { |
| 179 | return 'baz' |
| 180 | }) |
| 181 | instance.get('/', (req, reply) => { |
| 182 | t.assert.ok(req.id) |
| 183 | reply.send({ id: req.id }) |
| 184 | }) |
| 185 | next() |
| 186 | } |
| 187 | |
| 188 | const barInstance = function (instance, opts, next) { |
| 189 | instance.setGenReqId(function (req) { |
nothing calls this directly
no test coverage detected