Skip to content

Test/move fixtures to testdata - #235

Merged
fredbi merged 2 commits into
go-openapi:masterfrom
fredbi:test/move-fixtures-to-testdata
Aug 16, 2026
Merged

Test/move fixtures to testdata#235
fredbi merged 2 commits into
go-openapi:masterfrom
fredbi:test/move-fixtures-to-testdata

Conversation

@fredbi

@fredbi fredbi commented Aug 16, 2026

Copy link
Copy Markdown
Member

Change type

Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update

Short description

Fixes

Full description

Checklist

  • I have signed all my commits with my name and email (see DCO. This does not require a PGP-signed commit
  • I have rebased and squashed my work, so only one commit remains
  • I have added tests to cover my changes.
  • I have properly enriched go doc comments in code.
  • I have properly documented any breaking change.

fredbi and others added 2 commits August 16, 2026 18:44
The loading, yamlutils and jsonutils benchmarks modules each kept their
test material under fixtures/. It now lives in testdata/, joining
mangling/testdata which the fuzz corpus already occupied. The Go
toolchain gives testdata a defined meaning — package patterns, vet and
the build all skip it — whereas fixtures/ was ours alone.

Three go:embed directives are retargeted at the renamed directories.

The jsonutils/fixtures_test module keeps its name: it is a published
module path, and a shared harness rather than a directory of test
material. Its package name, its own embedded ordered_fixtures.yaml and
the import alias at nine call sites are untouched.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.23%. Comparing base (21b44e9) to head (47a8f7b).
⚠️ Report is 2 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #235   +/-   ##
=======================================
  Coverage   92.23%   92.23%           
=======================================
  Files          57       57           
  Lines        2704     2704           
=======================================
  Hits         2494     2494           
  Misses        166      166           
  Partials       44       44           

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

@fredbi
fredbi merged commit 60116a7 into go-openapi:master Aug 16, 2026
21 checks passed
@fredbi
fredbi deleted the test/move-fixtures-to-testdata branch August 16, 2026 17: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.

1 participant