This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
/
tag_repo.go
87 lines (67 loc) · 2 KB
/
tag_repo.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
context "context"
mock "github.com/stretchr/testify/mock"
models "github.com/flyteorg/datacatalog/pkg/repositories/models"
)
// TagRepo is an autogenerated mock type for the TagRepo type
type TagRepo struct {
mock.Mock
}
type TagRepo_Create struct {
*mock.Call
}
func (_m TagRepo_Create) Return(_a0 error) *TagRepo_Create {
return &TagRepo_Create{Call: _m.Call.Return(_a0)}
}
func (_m *TagRepo) OnCreate(ctx context.Context, in models.Tag) *TagRepo_Create {
c_call := _m.On("Create", ctx, in)
return &TagRepo_Create{Call: c_call}
}
func (_m *TagRepo) OnCreateMatch(matchers ...interface{}) *TagRepo_Create {
c_call := _m.On("Create", matchers...)
return &TagRepo_Create{Call: c_call}
}
// Create provides a mock function with given fields: ctx, in
func (_m *TagRepo) Create(ctx context.Context, in models.Tag) error {
ret := _m.Called(ctx, in)
var r0 error
if rf, ok := ret.Get(0).(func(context.Context, models.Tag) error); ok {
r0 = rf(ctx, in)
} else {
r0 = ret.Error(0)
}
return r0
}
type TagRepo_Get struct {
*mock.Call
}
func (_m TagRepo_Get) Return(_a0 models.Tag, _a1 error) *TagRepo_Get {
return &TagRepo_Get{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *TagRepo) OnGet(ctx context.Context, in models.TagKey) *TagRepo_Get {
c_call := _m.On("Get", ctx, in)
return &TagRepo_Get{Call: c_call}
}
func (_m *TagRepo) OnGetMatch(matchers ...interface{}) *TagRepo_Get {
c_call := _m.On("Get", matchers...)
return &TagRepo_Get{Call: c_call}
}
// Get provides a mock function with given fields: ctx, in
func (_m *TagRepo) Get(ctx context.Context, in models.TagKey) (models.Tag, error) {
ret := _m.Called(ctx, in)
var r0 models.Tag
if rf, ok := ret.Get(0).(func(context.Context, models.TagKey) models.Tag); ok {
r0 = rf(ctx, in)
} else {
r0 = ret.Get(0).(models.Tag)
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, models.TagKey) error); ok {
r1 = rf(ctx, in)
} else {
r1 = ret.Error(1)
}
return r0, r1
}