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