2024-01-18 12:12:29 -06:00
// Code generated by mockery v2.36.1. DO NOT EDIT.
2023-02-10 12:01:26 -06:00
package publicdashboards
import (
context "context"
models "github.com/grafana/grafana/pkg/services/publicdashboards/models"
mock "github.com/stretchr/testify/mock"
)
// FakePublicDashboardServiceWrapper is an autogenerated mock type for the ServiceWrapper type
type FakePublicDashboardServiceWrapper struct {
mock . Mock
}
2023-03-08 14:54:35 -06:00
// Delete provides a mock function with given fields: ctx, uid
func ( _m * FakePublicDashboardServiceWrapper ) Delete ( ctx context . Context , uid string ) error {
ret := _m . Called ( ctx , uid )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , string ) error ) ; ok {
r0 = rf ( ctx , uid )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-02-10 12:01:26 -06:00
// FindByDashboardUid provides a mock function with given fields: ctx, orgId, dashboardUid
func ( _m * FakePublicDashboardServiceWrapper ) FindByDashboardUid ( ctx context . Context , orgId int64 , dashboardUid string ) ( * models . PublicDashboard , error ) {
ret := _m . Called ( ctx , orgId , dashboardUid )
var r0 * models . PublicDashboard
2023-08-25 15:35:22 -05:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , int64 , string ) ( * models . PublicDashboard , error ) ) ; ok {
return rf ( ctx , orgId , dashboardUid )
}
2023-02-10 12:01:26 -06:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , int64 , string ) * models . PublicDashboard ) ; ok {
r0 = rf ( ctx , orgId , dashboardUid )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * models . PublicDashboard )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , int64 , string ) error ) ; ok {
r1 = rf ( ctx , orgId , dashboardUid )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-08-25 15:35:22 -05:00
// NewFakePublicDashboardServiceWrapper creates a new instance of FakePublicDashboardServiceWrapper. 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 NewFakePublicDashboardServiceWrapper ( t interface {
2023-02-10 12:01:26 -06:00
mock . TestingT
Cleanup ( func ( ) )
2023-08-25 15:35:22 -05:00
} ) * FakePublicDashboardServiceWrapper {
2023-02-10 12:01:26 -06:00
mock := & FakePublicDashboardServiceWrapper { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}