go.uber.org/yarpc@v1.72.1/encoding/thrift/thriftrw-plugin-yarpc/internal/tests/common/emptyservicetest/client.go (about)

     1  // Code generated by thriftrw-plugin-yarpc
     2  // @generated
     3  
     4  package emptyservicetest
     5  
     6  import (
     7  	gomock "github.com/golang/mock/gomock"
     8  	emptyserviceclient "go.uber.org/yarpc/encoding/thrift/thriftrw-plugin-yarpc/internal/tests/common/emptyserviceclient"
     9  )
    10  
    11  // MockClient implements a gomock-compatible mock client for service
    12  // EmptyService.
    13  type MockClient struct {
    14  	ctrl     *gomock.Controller
    15  	recorder *_MockClientRecorder
    16  }
    17  
    18  var _ emptyserviceclient.Interface = (*MockClient)(nil)
    19  
    20  type _MockClientRecorder struct {
    21  	mock *MockClient
    22  }
    23  
    24  // Build a new mock client for service EmptyService.
    25  //
    26  //	mockCtrl := gomock.NewController(t)
    27  //	client := emptyservicetest.NewMockClient(mockCtrl)
    28  //
    29  // Use EXPECT() to set expectations on the mock.
    30  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    31  	mock := &MockClient{ctrl: ctrl}
    32  	mock.recorder = &_MockClientRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows you to define an expectation on the
    37  // EmptyService mock client.
    38  func (m *MockClient) EXPECT() *_MockClientRecorder {
    39  	return m.recorder
    40  }