Skip to content

Conversation

@nikitaratnikov
Copy link

Summary

Updated our forked testify to last version

pmezard and others added 30 commits December 7, 2015 19:24
Fixed minor mistake in readme example
Remove unnecessary use of reflect in the implementation of
mock.FunctionalOptions().
The comments for the require package were just copied over
from the assert package when generating the functions.
This could lead to confusion because
1. The code-examples were showing examples using the
assert package instead of the require package
2. The function-documentation was not mentioning that
the functions were calling `t.FailNow()` which is some
critical information when using this package.
Co-authored-by: Olivier Mengué <dolmen@cpan.org>
brackendawson and others added 19 commits September 11, 2025 18:36
assert: IsIncreasing et al can return false w/out failing
…h_type

add type to error message of assert.Same
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
…ultidoc

assert.YAMLEq: Document mutlidoc behavior
Previously passing a mock.Mock by value rather than by reference worked (in cases without mutex locking issues) and logged a warning. This was broken by stretchr#1212 which introduced a breaking change in an attempt to fix go vet.

There is no clean way to fix the breaking change as we now have (and want) go vet in our CI.

This PR does not revert the breaking change but changes the panic to a test failure with a useful message.
…ationsForObjects-panic

mock.AssertExpectationsForObjects fix panic with wrong testObject type.
Godoc does not have inline code blocks. Look to the standaed library for conventions for inline references to code.
Copy code from dependency github.com/ernesto-jimenez/gogen/imports
(which hasn't evolved since 2018) as package _codegen/internal/imports.

This is imported from https://github.com/ernesto-jimenez/gogen at commit
d7d4131e6607813977e78297a6060f360f056a97.
See https://github.com/ernesto-jimenez/gogen/tree/d7d4131e6607813977e78297a6060f360f056a97/imports

The license block is added to match the LICENSE file from the source
repository.
Use our imported copy of package
github.com/ernesto-jimenez/gogen/imports to remove one external
dependency.
_codegen: copy dependency github.com/ernesto-jimenez/gogen/imports
These were previously inline code blocks (which go does not support) containing reference to a single symbol. Link to the symbol instead.
assert: truncate very long objects in test failure messages
doc: remove ineffective inline code blocks
@nikitaratnikov nikitaratnikov changed the title feature/WA-24452-update-testify WA-24452: Update Testify Sep 22, 2025
@nikitaratnikov nikitaratnikov marked this pull request as ready for review September 22, 2025 11:42
@nikitaratnikov nikitaratnikov merged commit 2650ce7 into master Sep 23, 2025
19 checks passed
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.