forked from yarpc/yarpc-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.go
40 lines (33 loc) · 1.02 KB
/
client.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
// Code generated by thriftrw-plugin-yarpc
// @generated
package emptyservicetest
import (
"github.com/golang/mock/gomock"
"go.uber.org/yarpc/encoding/thrift/thriftrw-plugin-yarpc/internal/tests/common/emptyserviceclient"
)
// MockClient implements a gomock-compatible mock client for service
// EmptyService.
type MockClient struct {
ctrl *gomock.Controller
recorder *_MockClientRecorder
}
var _ emptyserviceclient.Interface = (*MockClient)(nil)
type _MockClientRecorder struct {
mock *MockClient
}
// Build a new mock client for service EmptyService.
//
// mockCtrl := gomock.NewController(t)
// client := emptyservicetest.NewMockClient(mockCtrl)
//
// Use EXPECT() to set expectations on the mock.
func NewMockClient(ctrl *gomock.Controller) *MockClient {
mock := &MockClient{ctrl: ctrl}
mock.recorder = &_MockClientRecorder{mock}
return mock
}
// EXPECT returns an object that allows you to define an expectation on the
// EmptyService mock client.
func (m *MockClient) EXPECT() *_MockClientRecorder {
return m.recorder
}