Documentation ¶
Index ¶
- type GetRolePermissionsRow
- type MockQuerier
- type MockQuerier_Expecter
- type MockQuerier_GetRolePermissions_Call
- func (_c *MockQuerier_GetRolePermissions_Call) Return(_a0 []*GetRolePermissionsRow, _a1 error) *MockQuerier_GetRolePermissions_Call
- func (_c *MockQuerier_GetRolePermissions_Call) Run(run func(ctx context.Context, db mysql_queries.DBTX)) *MockQuerier_GetRolePermissions_Call
- func (_c *MockQuerier_GetRolePermissions_Call) RunAndReturn(...) *MockQuerier_GetRolePermissions_Call
- type Querier
- type Queries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetRolePermissionsRow ¶
type MockQuerier ¶
MockQuerier is an autogenerated mock type for the Querier type
func NewMockQuerier ¶
func NewMockQuerier(t interface { mock.TestingT Cleanup(func()) }) *MockQuerier
NewMockQuerier creates a new instance of MockQuerier. 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 (*MockQuerier) EXPECT ¶
func (_m *MockQuerier) EXPECT() *MockQuerier_Expecter
func (*MockQuerier) GetRolePermissions ¶
func (_m *MockQuerier) GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)
GetRolePermissions provides a mock function with given fields: ctx, db
type MockQuerier_Expecter ¶
type MockQuerier_Expecter struct {
// contains filtered or unexported fields
}
func (*MockQuerier_Expecter) GetRolePermissions ¶
func (_e *MockQuerier_Expecter) GetRolePermissions(ctx interface{}, db interface{}) *MockQuerier_GetRolePermissions_Call
GetRolePermissions is a helper method to define mock.On call
- ctx context.Context
- db mysql_queries.DBTX
type MockQuerier_GetRolePermissions_Call ¶
MockQuerier_GetRolePermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRolePermissions'
func (*MockQuerier_GetRolePermissions_Call) Return ¶
func (_c *MockQuerier_GetRolePermissions_Call) Return(_a0 []*GetRolePermissionsRow, _a1 error) *MockQuerier_GetRolePermissions_Call
func (*MockQuerier_GetRolePermissions_Call) Run ¶
func (_c *MockQuerier_GetRolePermissions_Call) Run(run func(ctx context.Context, db mysql_queries.DBTX)) *MockQuerier_GetRolePermissions_Call
func (*MockQuerier_GetRolePermissions_Call) RunAndReturn ¶
func (_c *MockQuerier_GetRolePermissions_Call) RunAndReturn(run func(context.Context, mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)) *MockQuerier_GetRolePermissions_Call
type Querier ¶
type Querier interface {
GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)
}
type Queries ¶
type Queries struct{}
func (*Queries) GetRolePermissions ¶
func (q *Queries) GetRolePermissions(ctx context.Context, db mysql_queries.DBTX) ([]*GetRolePermissionsRow, error)
Click to show internal directories.
Click to hide internal directories.