mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
51 lines
1.5 KiB
Go
51 lines
1.5 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: github.com/grafana/grafana/pkg/services/screenshot (interfaces: RateLimiter)
|
|
|
|
// Package screenshot is a generated GoMock package.
|
|
package screenshot
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
)
|
|
|
|
// MockRateLimiter is a mock of RateLimiter interface.
|
|
type MockRateLimiter struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockRateLimiterMockRecorder
|
|
}
|
|
|
|
// MockRateLimiterMockRecorder is the mock recorder for MockRateLimiter.
|
|
type MockRateLimiterMockRecorder struct {
|
|
mock *MockRateLimiter
|
|
}
|
|
|
|
// NewMockRateLimiter creates a new mock instance.
|
|
func NewMockRateLimiter(ctrl *gomock.Controller) *MockRateLimiter {
|
|
mock := &MockRateLimiter{ctrl: ctrl}
|
|
mock.recorder = &MockRateLimiterMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockRateLimiter) EXPECT() *MockRateLimiterMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Do mocks base method.
|
|
func (m *MockRateLimiter) Do(arg0 context.Context, arg1 ScreenshotOptions, arg2 screenshotFunc) (*Screenshot, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Do", arg0, arg1, arg2)
|
|
ret0, _ := ret[0].(*Screenshot)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// Do indicates an expected call of Do.
|
|
func (mr *MockRateLimiterMockRecorder) Do(arg0, arg1, arg2 any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockRateLimiter)(nil).Do), arg0, arg1, arg2)
|
|
}
|