type HasTab … // Tab provides a mock function with given fields: func (_m *HasTab) Tab() common.BarTab { … } // NewHasTab creates a new instance of HasTab. 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 NewHasTab(t interface { … }