mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
SearchV2: instant local updates, folder events (#50001)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.10.6. DO NOT EDIT.
|
||||
// Code generated by mockery v2.12.3. DO NOT EDIT.
|
||||
|
||||
package store
|
||||
|
||||
@@ -74,6 +74,11 @@ func (_m *MockEntityEventsService) IsDisabled() bool {
|
||||
return r0
|
||||
}
|
||||
|
||||
// OnEvent provides a mock function with given fields: handler
|
||||
func (_m *MockEntityEventsService) OnEvent(handler EventHandler) {
|
||||
_m.Called(handler)
|
||||
}
|
||||
|
||||
// Run provides a mock function with given fields: ctx
|
||||
func (_m *MockEntityEventsService) Run(ctx context.Context) error {
|
||||
ret := _m.Called(ctx)
|
||||
@@ -115,3 +120,18 @@ func (_m *MockEntityEventsService) deleteEventsOlderThan(ctx context.Context, du
|
||||
|
||||
return r0
|
||||
}
|
||||
|
||||
type NewMockEntityEventsServiceT interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}
|
||||
|
||||
// NewMockEntityEventsService creates a new instance of MockEntityEventsService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewMockEntityEventsService(t NewMockEntityEventsServiceT) *MockEntityEventsService {
|
||||
mock := &MockEntityEventsService{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||||
|
||||
return mock
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user