type CommandComponentHandler … // Execute provides a mock function with given fields: p func (_m *CommandComponentHandler) Execute(p commands.CommandComponentActivation) { … } // NewCommandComponentHandler creates a new instance of CommandComponentHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewCommandComponentHandler(t interface { … }