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

supabase / storage / 26899901438

03 Jun 2026 04:55PM UTC coverage: 42.425% (-33.0%) from 75.379%
26899901438

Pull #1132

github

web-flow
Merge 9c68b15ac into 0afb09325
Pull Request #1132: fix: add acceptance matrix for vectors

2460 of 6402 branches covered (38.43%)

Branch coverage included in aggregate %.

257 of 446 new or added lines in 27 files covered. (57.62%)

3664 existing lines in 167 files now uncovered.

4857 of 10845 relevant lines covered (44.79%)

34.27 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