mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 04:59:15 -06:00
53 lines
1.9 KiB
Go
53 lines
1.9 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/grafana/grafana/pkg/services/live/features (interfaces: PluginContextGetter)
|
|
|
|
// Package features is a generated GoMock package.
|
|
package features
|
|
|
|
import (
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
backend "github.com/grafana/grafana-plugin-sdk-go/backend"
|
|
models "github.com/grafana/grafana/pkg/models"
|
|
)
|
|
|
|
// MockPluginContextGetter is a mock of PluginContextGetter interface.
|
|
type MockPluginContextGetter struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockPluginContextGetterMockRecorder
|
|
}
|
|
|
|
// MockPluginContextGetterMockRecorder is the mock recorder for MockPluginContextGetter.
|
|
type MockPluginContextGetterMockRecorder struct {
|
|
mock *MockPluginContextGetter
|
|
}
|
|
|
|
// NewMockPluginContextGetter creates a new mock instance.
|
|
func NewMockPluginContextGetter(ctrl *gomock.Controller) *MockPluginContextGetter {
|
|
mock := &MockPluginContextGetter{ctrl: ctrl}
|
|
mock.recorder = &MockPluginContextGetterMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockPluginContextGetter) EXPECT() *MockPluginContextGetterMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetPluginContext mocks base method.
|
|
func (m *MockPluginContextGetter) GetPluginContext(arg0 *models.SignedInUser, arg1, arg2 string) (backend.PluginContext, bool, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetPluginContext", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].(backend.PluginContext)
|
|
ret1, _ := ret[1].(bool)
|
|
ret2, _ := ret[2].(error)
|
|
return ret0, ret1, ret2
|
|
}
|
|
|
|
// GetPluginContext indicates an expected call of GetPluginContext.
|
|
func (mr *MockPluginContextGetterMockRecorder) GetPluginContext(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPluginContext", reflect.TypeOf((*MockPluginContextGetter)(nil).GetPluginContext), arg0, arg1, arg2)
|
|
}
|