Skip to content

Conversation

@ccoVeille
Copy link
Collaborator

Summary

Fix panic when using EqualValues with uncomparable types

Changes

Add calls to CanConvert and CanInterface to avoid panics

Motivation

Avoid panic

Related issues

Closes #1699

fredbi added a commit to fredbi/testify that referenced this pull request 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
==================================

* 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 <[email protected]>
fredbi added a commit to go-openapi/testify that referenced this pull request 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
==================================

* fixes #7

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

Signed-off-by: Frederic BIDON <[email protected]>
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.

EqualValues is not panic-safe

1 participant