stretchr / testify

A toolkit with common assertions and mocks that plays nicely with the standard library
MIT License
22.5k stars 1.56k forks source link

assert: deprecate CompareType #1566

Closed dolmen closed 3 months ago

dolmen commented 4 months ago

Summary

Mark assert.CompareType as deprecated.

Changes

Commits step by step:

Motivation

assert.CompareType has been introduced by 0b4ff03cda5c8eb0150a14ffbaaa088fd777d6ba and published since v1.6.0, but it is in fact only for internal usage and should never have been exposed.

A search of usage of assert.CompareType on GitHub shows no results: https://github.com/search?q=assert.CompareType%20language%3AGo%20&type=repositories

Related issues

N/A

dolmen commented 4 months ago

Similar PR about deprecating a private type that should not have been exposed: #1441.