type CommandWithButtons … type mockConstructorTestingTNewCommandWithButtons … // NewCommandWithButtons creates a new instance of CommandWithButtons. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. func NewCommandWithButtons(t mockConstructorTestingTNewCommandWithButtons) *CommandWithButtons { … }