mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
53 lines
2.0 KiB
Go
53 lines
2.0 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 (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
backend "github.com/grafana/grafana-plugin-sdk-go/backend"
|
|
identity "github.com/grafana/grafana/pkg/services/auth/identity"
|
|
)
|
|
|
|
// 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 context.Context, arg1 identity.Requester, arg2, arg3 string, arg4 bool) (backend.PluginContext, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetPluginContext", arg0, arg1, arg2, arg3, arg4)
|
|
ret0, _ := ret[0].(backend.PluginContext)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetPluginContext indicates an expected call of GetPluginContext.
|
|
func (mr *MockPluginContextGetterMockRecorder) GetPluginContext(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPluginContext", reflect.TypeOf((*MockPluginContextGetter)(nil).GetPluginContext), arg0, arg1, arg2, arg3, arg4)
|
|
}
|