type Role … // ID provides a mock function with given fields: func (_m *Role) ID() string { … } // IsMentionable provides a mock function with given fields: func (_m *Role) IsMentionable() bool { … } // IsUserAdmin provides a mock function with given fields: func (_m *Role) IsUserAdmin() bool { … } // Mention provides a mock function with given fields: func (_m *Role) Mention() string { … } // Name provides a mock function with given fields: func (_m *Role) Name() string { … } // NextHigherRole provides a mock function with given fields: func (_m *Role) NextHigherRole() common.Role { … } // NextLowerRole provides a mock function with given fields: func (_m *Role) NextLowerRole() common.Role { … } // Order provides a mock function with given fields: func (_m *Role) Order() int { … } // NewRole creates a new instance of Role. 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 NewRole(t interface { … }