Chore: Update mocks with recent mockery (#107816)

This commit is contained in:
Ryan McKinley
2025-07-09 09:15:34 +02:00
committed by GitHub
parent 39904d7b9b
commit 3f502f305d
95 changed files with 877 additions and 522 deletions
@@ -1,10 +1,9 @@
// Code generated by mockery v2.12.0. DO NOT EDIT.
// Code generated by mockery v2.53.4. DO NOT EDIT.
package annotations
import (
context "context"
testing "testing"
mock "github.com/stretchr/testify/mock"
)
@@ -18,6 +17,10 @@ type FakeAnnotationsRepo struct {
func (_m *FakeAnnotationsRepo) Delete(ctx context.Context, params *DeleteParams) error {
ret := _m.Called(ctx, params)
if len(ret) == 0 {
panic("no return value specified for Delete")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *DeleteParams) error); ok {
r0 = rf(ctx, params)
@@ -32,7 +35,15 @@ func (_m *FakeAnnotationsRepo) Delete(ctx context.Context, params *DeleteParams)
func (_m *FakeAnnotationsRepo) Find(ctx context.Context, query *ItemQuery) ([]*ItemDTO, error) {
ret := _m.Called(ctx, query)
if len(ret) == 0 {
panic("no return value specified for Find")
}
var r0 []*ItemDTO
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, *ItemQuery) ([]*ItemDTO, error)); ok {
return rf(ctx, query)
}
if rf, ok := ret.Get(0).(func(context.Context, *ItemQuery) []*ItemDTO); ok {
r0 = rf(ctx, query)
} else {
@@ -41,7 +52,6 @@ func (_m *FakeAnnotationsRepo) Find(ctx context.Context, query *ItemQuery) ([]*I
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *ItemQuery) error); ok {
r1 = rf(ctx, query)
} else {
@@ -55,14 +65,21 @@ func (_m *FakeAnnotationsRepo) Find(ctx context.Context, query *ItemQuery) ([]*I
func (_m *FakeAnnotationsRepo) FindTags(ctx context.Context, query *TagsQuery) (FindTagsResult, error) {
ret := _m.Called(ctx, query)
if len(ret) == 0 {
panic("no return value specified for FindTags")
}
var r0 FindTagsResult
var r1 error
if rf, ok := ret.Get(0).(func(context.Context, *TagsQuery) (FindTagsResult, error)); ok {
return rf(ctx, query)
}
if rf, ok := ret.Get(0).(func(context.Context, *TagsQuery) FindTagsResult); ok {
r0 = rf(ctx, query)
} else {
r0 = ret.Get(0).(FindTagsResult)
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *TagsQuery) error); ok {
r1 = rf(ctx, query)
} else {
@@ -76,6 +93,10 @@ func (_m *FakeAnnotationsRepo) FindTags(ctx context.Context, query *TagsQuery) (
func (_m *FakeAnnotationsRepo) Save(ctx context.Context, item *Item) error {
ret := _m.Called(ctx, item)
if len(ret) == 0 {
panic("no return value specified for Save")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *Item) error); ok {
r0 = rf(ctx, item)
@@ -90,6 +111,10 @@ func (_m *FakeAnnotationsRepo) Save(ctx context.Context, item *Item) error {
func (_m *FakeAnnotationsRepo) SaveMany(ctx context.Context, items []Item) error {
ret := _m.Called(ctx, items)
if len(ret) == 0 {
panic("no return value specified for SaveMany")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, []Item) error); ok {
r0 = rf(ctx, items)
@@ -104,6 +129,10 @@ func (_m *FakeAnnotationsRepo) SaveMany(ctx context.Context, items []Item) error
func (_m *FakeAnnotationsRepo) Update(ctx context.Context, item *Item) error {
ret := _m.Called(ctx, item)
if len(ret) == 0 {
panic("no return value specified for Update")
}
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, *Item) error); ok {
r0 = rf(ctx, item)
@@ -114,8 +143,12 @@ func (_m *FakeAnnotationsRepo) Update(ctx context.Context, item *Item) error {
return r0
}
// NewFakeAnnotationsRepo creates a new instance of FakeAnnotationsRepo. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func NewFakeAnnotationsRepo(t testing.TB) *FakeAnnotationsRepo {
// NewFakeAnnotationsRepo creates a new instance of FakeAnnotationsRepo. 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 NewFakeAnnotationsRepo(t interface {
mock.TestingT
Cleanup(func())
}) *FakeAnnotationsRepo {
mock := &FakeAnnotationsRepo{}
mock.Mock.Test(t)