mardi 21 juin 2016

How to assert that mocked method calls happen in-order with testify?

The documentation for AssertExpectations says "AssertExpectations asserts that everything specified with On and Return was in fact called as expected. Calls may have occurred in any order." What if I want to assert that some calls happen in-order?

gomock has *Call.After(*Call) for this, but I can't see anything similar in testify. Is there a way, or should I just use gomock?

Aucun commentaire:

Enregistrer un commentaire