This repository has been archived by the owner on May 21, 2024. It is now read-only.
/
song_svc.go
125 lines (107 loc) · 4.25 KB
/
song_svc.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/typical-go/typical-rest-server/internal/app/service (interfaces: SongSvc)
// Package service_mock is a generated GoMock package.
package service_mock
import (
context "context"
gomock "github.com/golang/mock/gomock"
service "github.com/typical-go/typical-rest-server/internal/app/service"
entity "github.com/typical-go/typical-rest-server/internal/app/entity"
reflect "reflect"
)
// MockSongSvc is a mock of SongSvc interface
type MockSongSvc struct {
ctrl *gomock.Controller
recorder *MockSongSvcMockRecorder
}
// MockSongSvcMockRecorder is the mock recorder for MockSongSvc
type MockSongSvcMockRecorder struct {
mock *MockSongSvc
}
// NewMockSongSvc creates a new mock instance
func NewMockSongSvc(ctrl *gomock.Controller) *MockSongSvc {
mock := &MockSongSvc{ctrl: ctrl}
mock.recorder = &MockSongSvcMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockSongSvc) EXPECT() *MockSongSvcMockRecorder {
return m.recorder
}
// Create mocks base method
func (m *MockSongSvc) Create(arg0 context.Context, arg1 *entity.Song) (*entity.Song, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Create", arg0, arg1)
ret0, _ := ret[0].(*entity.Song)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Create indicates an expected call of Create
func (mr *MockSongSvcMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockSongSvc)(nil).Create), arg0, arg1)
}
// Delete mocks base method
func (m *MockSongSvc) Delete(arg0 context.Context, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete
func (mr *MockSongSvcMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockSongSvc)(nil).Delete), arg0, arg1)
}
// Find mocks base method
func (m *MockSongSvc) Find(arg0 context.Context, arg1 *service.FindSongReq) (*service.FindSongResp, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Find", arg0, arg1)
ret0, _ := ret[0].(*service.FindSongResp)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Find indicates an expected call of Find
func (mr *MockSongSvcMockRecorder) Find(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Find", reflect.TypeOf((*MockSongSvc)(nil).Find), arg0, arg1)
}
// FindOne mocks base method
func (m *MockSongSvc) FindOne(arg0 context.Context, arg1 string) (*entity.Song, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FindOne", arg0, arg1)
ret0, _ := ret[0].(*entity.Song)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FindOne indicates an expected call of FindOne
func (mr *MockSongSvcMockRecorder) FindOne(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindOne", reflect.TypeOf((*MockSongSvc)(nil).FindOne), arg0, arg1)
}
// Patch mocks base method
func (m *MockSongSvc) Patch(arg0 context.Context, arg1 string, arg2 *entity.Song) (*entity.Song, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Patch", arg0, arg1, arg2)
ret0, _ := ret[0].(*entity.Song)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Patch indicates an expected call of Patch
func (mr *MockSongSvcMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockSongSvc)(nil).Patch), arg0, arg1, arg2)
}
// Update mocks base method
func (m *MockSongSvc) Update(arg0 context.Context, arg1 string, arg2 *entity.Song) (*entity.Song, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Update", arg0, arg1, arg2)
ret0, _ := ret[0].(*entity.Song)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Update indicates an expected call of Update
func (mr *MockSongSvcMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockSongSvc)(nil).Update), arg0, arg1, arg2)
}