-
Notifications
You must be signed in to change notification settings - Fork 0
/
Repository.go
37 lines (30 loc) · 856 Bytes
/
Repository.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
// Code generated by mockery v1.0.0
package mocks
import (
context "context"
models "github.com/handika/kuncie-takehome-test/models"
mock "github.com/stretchr/testify/mock"
)
// Repository is an autogenerated mock type for the Repository type
type Repository struct {
mock.Mock
}
// GetByID provides a mock function with given fields: ctx, id
func (_m *Repository) GetByID(ctx context.Context, id int64) (*models.PromoPaylessRule, error) {
ret := _m.Called(ctx, id)
var r0 *models.PromoPaylessRule
if rf, ok := ret.Get(0).(func(context.Context, int64) *models.PromoPaylessRule); ok {
r0 = rf(ctx, id)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*models.PromoPaylessRule)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, int64) error); ok {
r1 = rf(ctx, id)
} else {
r1 = ret.Error(1)
}
return r0, r1
}