stretchr / testify

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

Support AnyTimes call in mock #1372

Open qingwave opened 1 year ago

qingwave commented 1 year ago

Cound we support AnyTimes/MaxTimes call in mock, just like gomock

mockObj.EXPECT().SomeMethod(someVal).AnyTimes()

Or some other workaround?

qingwave commented 1 year ago

Seems Maybe method may works for AnyTimes case.