• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / storage / 26213785588

21 May 2026 08:08AM UTC coverage: 40.286% (-34.7%) from 74.992%
26213785588

Pull #1118

github

web-flow
Merge fcbe53820 into 322ab2ebb
Pull Request #1118: fix: single callback for memory collector

2182 of 5969 branches covered (36.56%)

Branch coverage included in aggregate %.

15 of 15 new or added lines in 2 files covered. (100.0%)

3727 existing lines in 166 files now uncovered.

4335 of 10208 relevant lines covered (42.47%)

35.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

26.67
/src/http/plugins/empty-json-body.ts
1
import { FastifyInstance } from 'fastify'
2

3
export function registerJsonParserAllowingEmptyBody(fastify: FastifyInstance) {
4
  const defaultJsonParser = fastify.getDefaultJsonParser(
2✔
5
    fastify.initialConfig.onProtoPoisoning ?? 'error',
2!
6
    fastify.initialConfig.onConstructorPoisoning ?? 'error'
2!
7
  )
8

9
  fastify.addContentTypeParser('application/json', { parseAs: 'string' }, (request, body, done) => {
2✔
UNCOV
10
    if (!body) {
×
UNCOV
11
      done(null, null)
×
UNCOV
12
      return
×
13
    }
14

15
    const jsonBody = typeof body === 'string' ? body : body.toString('utf8')
×
16

UNCOV
17
    defaultJsonParser(request, jsonBody, done)
×
18
  })
19
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc