文档AssertExpectations说“AssertExpectations 断言用 On 和 Return 指定的所有内容实际上都按预期调用。调用可能以任何顺序发生。” 如果我想断言某些调用是按顺序发生的怎么办?
AssertExpectations
gomock 有*Call.After(*Call)这个,但我在作证中看不到任何类似的东西。有没有办法,或者我应该只使用 gomock?
*Call.After(*Call)
unit-testing mocking go testify
go ×1
mocking ×1
testify ×1
unit-testing ×1