mirror of https://github.com/grafana/grafana
PublicDashboards: Middleware creation (#77941)
parent
a3576fc8cf
commit
9c5daed336
@ -0,0 +1,42 @@ |
||||
// Code generated by mockery v2.36.1. DO NOT EDIT.
|
||||
|
||||
package publicdashboards |
||||
|
||||
import ( |
||||
contextmodel "github.com/grafana/grafana/pkg/services/contexthandler/model" |
||||
mock "github.com/stretchr/testify/mock" |
||||
) |
||||
|
||||
// FakePublicDashboardMiddleware is an autogenerated mock type for the Middleware type
|
||||
type FakePublicDashboardMiddleware struct { |
||||
mock.Mock |
||||
} |
||||
|
||||
// HandleApi provides a mock function with given fields: c
|
||||
func (_m *FakePublicDashboardMiddleware) HandleApi(c *contextmodel.ReqContext) { |
||||
_m.Called(c) |
||||
} |
||||
|
||||
// HandleGet provides a mock function with given fields: c
|
||||
func (_m *FakePublicDashboardMiddleware) HandleView(c *contextmodel.ReqContext) { |
||||
_m.Called(c) |
||||
} |
||||
|
||||
// HandleRequestOrConfirmAccess provides a mock function with given fields: c
|
||||
func (_m *FakePublicDashboardMiddleware) HandleAccessView(c *contextmodel.ReqContext) { |
||||
_m.Called(c) |
||||
} |
||||
|
||||
// NewFakePublicDashboardMiddleware creates a new instance of FakePublicDashboardMiddleware. 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 NewFakePublicDashboardMiddleware(t interface { |
||||
mock.TestingT |
||||
Cleanup(func()) |
||||
}) *FakePublicDashboardMiddleware { |
||||
mock := &FakePublicDashboardMiddleware{} |
||||
mock.Mock.Test(t) |
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) }) |
||||
|
||||
return mock |
||||
} |
Loading…
Reference in new issue