I use testify
(v1.6.1) and need to test if methods of interfaces call in right order. I checked the documentation and tried to find any information in the internet, but didn't find anything about mocks order checking.
Example:
type InterfaceA interface {
Execute()
}
type InterfaceB interface {
Execute()
}
type Composition struct {
a InterfaceA
b InterfaceB
}
func (c * Composition) Apply() error {
//How to check that "a" execute before "b"?
c.a.Execute()
c.b.Execute()
return nil
}