-
Notifications
You must be signed in to change notification settings - Fork 48
/
mock_namespaced.go
87 lines (73 loc) · 2.94 KB
/
mock_namespaced.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
// Copyright 2024 Lingfei Kong <colin404@foxmail.com>. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file. The original repo for
// this file is https://github.com/superproj/onex.
//
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/superproj/onex/internal/cacheserver/biz/namespaced (interfaces: NamespacedBiz)
// Package namespaced is a generated GoMock package.
package namespaced
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
v1 "github.com/superproj/onex/pkg/api/cacheserver/v1"
anypb "google.golang.org/protobuf/types/known/anypb"
durationpb "google.golang.org/protobuf/types/known/durationpb"
)
// MockNamespacedBiz is a mock of NamespacedBiz interface.
type MockNamespacedBiz struct {
ctrl *gomock.Controller
recorder *MockNamespacedBizMockRecorder
}
// MockNamespacedBizMockRecorder is the mock recorder for MockNamespacedBiz.
type MockNamespacedBizMockRecorder struct {
mock *MockNamespacedBiz
}
// NewMockNamespacedBiz creates a new mock instance.
func NewMockNamespacedBiz(ctrl *gomock.Controller) *MockNamespacedBiz {
mock := &MockNamespacedBiz{ctrl: ctrl}
mock.recorder = &MockNamespacedBizMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockNamespacedBiz) EXPECT() *MockNamespacedBizMockRecorder {
return m.recorder
}
// Del mocks base method.
func (m *MockNamespacedBiz) Del(arg0 context.Context, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Del", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Del indicates an expected call of Del.
func (mr *MockNamespacedBizMockRecorder) Del(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Del", reflect.TypeOf((*MockNamespacedBiz)(nil).Del), arg0, arg1)
}
// Get mocks base method.
func (m *MockNamespacedBiz) Get(arg0 context.Context, arg1 string) (*v1.GetResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", arg0, arg1)
ret0, _ := ret[0].(*v1.GetResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockNamespacedBizMockRecorder) Get(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockNamespacedBiz)(nil).Get), arg0, arg1)
}
// Set mocks base method.
func (m *MockNamespacedBiz) Set(arg0 context.Context, arg1 string, arg2 *anypb.Any, arg3 *durationpb.Duration) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Set", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// Set indicates an expected call of Set.
func (mr *MockNamespacedBizMockRecorder) Set(arg0, arg1, arg2, arg3 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Set", reflect.TypeOf((*MockNamespacedBiz)(nil).Set), arg0, arg1, arg2, arg3)
}