mockstore.go
TLDR
This file is a generated mock file for the Store
interface in the permissions
package of the focalboard
server service. It contains a MockStore
struct that is a mock implementation of the Store
interface.
Methods
GetBoard
This method is a mock implementation of the GetBoard
method in the Store
interface. It takes a string argument and returns a *model.Board
and an error.
GetBoardHistory
This method is a mock implementation of the GetBoardHistory
method in the Store
interface. It takes a string and a model.QueryBoardHistoryOptions
argument and returns a slice of *model.Board
and an error.
GetMemberForBoard
This method is a mock implementation of the GetMemberForBoard
method in the Store
interface. It takes two string arguments and returns a *model.BoardMember
and an error.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/mattermost/focalboard/server/services/permissions (interfaces: Store)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
model "github.com/mattermost/focalboard/server/model"
)
// MockStore is a mock of Store interface.
type MockStore struct {
ctrl *gomock.Controller
recorder *MockStoreMockRecorder
}
// MockStoreMockRecorder is the mock recorder for MockStore.
type MockStoreMockRecorder struct {
mock *MockStore
}
// NewMockStore creates a new mock instance.
func NewMockStore(ctrl *gomock.Controller) *MockStore {
mock := &MockStore{ctrl: ctrl}
mock.recorder = &MockStoreMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockStore) EXPECT() *MockStoreMockRecorder {
return m.recorder
}
// GetBoard mocks base method.
func (m *MockStore) GetBoard(arg0 string) (*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoard", arg0)
ret0, _ := ret[0].(*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBoard indicates an expected call of GetBoard.
func (mr *MockStoreMockRecorder) GetBoard(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBoard", reflect.TypeOf((*MockStore)(nil).GetBoard), arg0)
}
// GetBoardHistory mocks base method.
func (m *MockStore) GetBoardHistory(arg0 string, arg1 model.QueryBoardHistoryOptions) ([]*model.Board, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBoardHistory", arg0, arg1)
ret0, _ := ret[0].([]*model.Board)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBoardHistory indicates an expected call of GetBoardHistory.
func (mr *MockStoreMockRecorder) GetBoardHistory(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBoardHistory", reflect.TypeOf((*MockStore)(nil).GetBoardHistory), arg0, arg1)
}
// GetMemberForBoard mocks base method.
func (m *MockStore) GetMemberForBoard(arg0, arg1 string) (*model.BoardMember, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMemberForBoard", arg0, arg1)
ret0, _ := ret[0].(*model.BoardMember)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetMemberForBoard indicates an expected call of GetMemberForBoard.
func (mr *MockStoreMockRecorder) GetMemberForBoard(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMemberForBoard", reflect.TypeOf((*MockStore)(nil).GetMemberForBoard), arg0, arg1)
}