Skip to content

Conversation

@fredbi
Copy link
Member

@fredbi fredbi commented Dec 27, 2025

==================================

Panic situation is explained by stretchr#1699

The fix from the original author (@ccoVeille) has been adapted into our refactored assertions (with unit test).

fix: avoid panic on invalid regexp

Merged stretchr#1818

The original issue is described by: stretchr#1794

The original code contributed by @kdt523 has been adapted to our refactored assertions (with tests), taking into account the review comments from @ccoVeille. Thanks folks.

fix: documented the fixed merged from github.com/stretchr/testify ==================================

Also: since a dependency has been removed in the previous refactoring, updated the NOTICE to reflect this fact.

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.

==================================

Panic situation is explained by stretchr#1699

The fix from the original author (@ccoVeille) has been adapted into our
refactored assertions (with unit test).

fix: avoid panic on invalid regexp
==================================

Merged stretchr#1818

The original issue is described by: stretchr#1794

The original code contributed by @kdt523 has been adapted to our
refactored assertions (with tests), taking into account the review comments from
@ccoVeille. Thanks folks.

fix: documented the fixed merged from github.com/stretchr/testify
==================================

* fixes go-openapi#7

Also: since a dependency has been removed in the previous refactoring,
updated the NOTICE to reflect this fact.

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
@codecov
Copy link

codecov bot commented Dec 27, 2025

Codecov Report

❌ Patch coverage is 75.86207% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.69%. Comparing base (30ab924) to head (8143bf7).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
internal/assertions/object.go 53.84% 3 Missing and 3 partials ⚠️
internal/assertions/string.go 93.75% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (75.86%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
- Coverage   95.78%   95.69%   -0.10%     
==========================================
  Files          37       37              
  Lines        5627     5646      +19     
==========================================
+ Hits         5390     5403      +13     
- Misses        166      169       +3     
- Partials       71       74       +3     
Flag Coverage Δ
oldstable-macos-latest 95.69% <75.86%> (-0.10%) ⬇️
oldstable-ubuntu-latest 95.69% <75.86%> (-0.10%) ⬇️
oldstable-windows-latest 95.69% <75.86%> (-0.10%) ⬇️
stable-macos-latest 95.69% <75.86%> (-0.10%) ⬇️
stable-ubuntu-latest 95.69% <75.86%> (-0.10%) ⬇️
stable-windows-latest 95.69% <75.86%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@fredbi fredbi merged commit 54b53a7 into go-openapi:master Dec 27, 2025
13 of 14 checks passed
@fredbi fredbi deleted the fix/issue6-merge-panicking-fixes branch December 27, 2025 17:50
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.

Fix exposures to panicking

2 participants