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

mock: document more alternatives to deprecated AnythingOfTypeArgument #1569

Closed dolmen closed 2 months ago

dolmen commented 3 months ago

Summary

Follow-up to #1441: more doc for deprecated mock.AnythingOfTypeArgument.

Changes

Improve go doc.

Motivation

I had a look to usages of mock.AnythingOfTypeArgument in the wild on GitHub: https://github.com/search?q=mock.AnythingOfTypeArgument+language%3Ago+NOT+repo%3Astretchr%2Ftestify&type=code

This change should give more guidance for fixing the issue in downstream projects.

Related issues