type HasRoles … // GrantRole provides a mock function with given fields: role func (_m *HasRoles) GrantRole(role common.Role) { … } // HasRole provides a mock function with given fields: _a0 func (_m *HasRoles) HasRole(_a0 common.Role) bool { … } // HighestRole provides a mock function with given fields: func (_m *HasRoles) HighestRole() common.Role { … } // RemoveRole provides a mock function with given fields: role func (_m *HasRoles) RemoveRole(role common.Role) { … } // RestoreDelurkRoles provides a mock function with given fields: func (_m *HasRoles) RestoreDelurkRoles() { … } // Roles provides a mock function with given fields: func (_m *HasRoles) Roles() common.RolesCollection { … } // SetDelurkRoles provides a mock function with given fields: collection func (_m *HasRoles) SetDelurkRoles(collection common.RolesCollection) { … } // NewHasRoles creates a new instance of HasRoles. 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 NewHasRoles(t interface { … }