Skip to content

Import json test suite - #40

Closed
ChrisJefferson wants to merge 2 commits into
masterfrom
import-json-test-suite
Closed

ChrisJefferson wants to merge 2 commits into
masterfrom
import-json-test-suite

Conversation

@ChrisJefferson

Copy link
Copy Markdown
Member

No description provided.

fingolfin and others added 2 commits September 25, 2026 21:45
Import the upstream parsing corpus and record the current parser's deliberately lenient cases. Adapt the test work from #39 so it can land independently of the pure GAP implementation and address #4 first.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Codex GPT-5 <noreply@anthropic.com>
Make the kernel extension optional while preserving the existing picojson behaviour. Dispatch GapToJsonString through the selected implementation as well, so the fallback remains complete after the 2.5.0 direct kernel serialiser. Compare the implementations across JSONTestSuite.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Codex GPT-5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.43590% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.47%. Comparing base (5207534) to head (0abf394).

Files with missing lines Patch % Lines
gap/parse.gi 96.85% 12 Missing ⚠️
gap/impl.gi 97.29% 1 Missing ⚠️
gap/utf8.gi 99.05% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #40      +/-   ##
==========================================
+ Coverage   96.50%   97.47%   +0.96%     
==========================================
  Files           6       10       +4     
  Lines         143      791     +648     
==========================================
+ Hits          138      771     +633     
- Misses          5       20      +15     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fingolfin

Copy link
Copy Markdown
Member

This seems to be a rebased duplicate of PR #39 ? Maybe you meant to drop the second commit which adds the pure GAP JSON parser?

@ChrisJefferson

Copy link
Copy Markdown
Member Author

Yes, I wanted to polish the tests first, I actually wasn't expecting this to get spotted so fast, I mainly made a PR because the CI wouldn't run on branches which aren't in PR (I could fix that directly of course!)

@ChrisJefferson

Copy link
Copy Markdown
Member Author

Superseded by #41, which incorporates the JSONTestSuite import and the pure GAP fallback, then adds the agreed parser hardening, complete 318-file corpus coverage, and kernel/no-kernel CI coverage. Closing this intermediate PR in favour of #41.

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.

2 participants