Skip to content

test: enforce 100% code coverage - #873

Merged
climba03003 merged 3 commits into
fastify:mainfrom
Puppo:enforce-100-coverage
Aug 17, 2026
Merged

test: enforce 100% code coverage#873
climba03003 merged 3 commits into
fastify:mainfrom
Puppo:enforce-100-coverage

Conversation

@Puppo

@Puppo Puppo commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • enforce 100% statement, branch, function, and line coverage for authored runtime code
  • add focused tests for empty strings, null schemas, and code-generation fallback paths
  • keep generated schema validation code outside the coverage scope through .c8rc.json
  • leave production runtime code unchanged

Testing

  • npm test
  • npm run lint

Coverage reports 100% for statements, branches, functions, and lines.

@Puppo
Puppo marked this pull request as ready for review August 17, 2026 13:07
Comment thread .c8rc.json Outdated
@Puppo
Puppo requested a review from climba03003 August 17, 2026 13:22

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@climba03003
climba03003 merged commit b926f53 into fastify:main Aug 17, 2026
17 checks passed
@Puppo
Puppo deleted the enforce-100-coverage branch August 18, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants