(instance, opts, next)
| 186 | } |
| 187 | |
| 188 | const barInstance = function (instance, opts, next) { |
| 189 | instance.setGenReqId(function (req) { |
| 190 | return 'bar' |
| 191 | }) |
| 192 | instance.get('/', (req, reply) => { |
| 193 | t.assert.ok(req.id) |
| 194 | reply.send({ id: req.id }) |
| 195 | }) |
| 196 | next() |
| 197 | } |
| 198 | |
| 199 | const fooInstance = function (instance, opts, next) { |
| 200 | instance.register(bazInstance, { prefix: 'baz' }) |
nothing calls this directly
no test coverage detected