github.com/cloudwego/kitex@v0.9.0/internal/mocks/rpc_info/timeout_provider.go (about)

     1  /*
     2   * Copyright 2021 CloudWeGo Authors
     3   *
     4   * Licensed under the Apache License, Version 2.0 (the "License");
     5   * you may not use this file except in compliance with the License.
     6   * You may obtain a copy of the License at
     7   *
     8   *     http://www.apache.org/licenses/LICENSE-2.0
     9   *
    10   * Unless required by applicable law or agreed to in writing, software
    11   * distributed under the License is distributed on an "AS IS" BASIS,
    12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13   * See the License for the specific language governing permissions and
    14   * limitations under the License.
    15   */
    16  
    17  // Code generated by MockGen. DO NOT EDIT.
    18  // Source: github.com/cloudwego/kitex/pkg/rpcinfo (interfaces: TimeoutProvider)
    19  
    20  // Package rpc_info is a generated GoMock package.
    21  package rpc_info
    22  
    23  import (
    24  	reflect "reflect"
    25  
    26  	gomock "github.com/golang/mock/gomock"
    27  
    28  	rpcinfo "github.com/cloudwego/kitex/pkg/rpcinfo"
    29  )
    30  
    31  // MockTimeoutProvider is a mock of TimeoutProvider interface.
    32  type MockTimeoutProvider struct {
    33  	ctrl     *gomock.Controller
    34  	recorder *MockTimeoutProviderMockRecorder
    35  }
    36  
    37  // MockTimeoutProviderMockRecorder is the mock recorder for MockTimeoutProvider.
    38  type MockTimeoutProviderMockRecorder struct {
    39  	mock *MockTimeoutProvider
    40  }
    41  
    42  // NewMockTimeoutProvider creates a new mock instance.
    43  func NewMockTimeoutProvider(ctrl *gomock.Controller) *MockTimeoutProvider {
    44  	mock := &MockTimeoutProvider{ctrl: ctrl}
    45  	mock.recorder = &MockTimeoutProviderMockRecorder{mock}
    46  	return mock
    47  }
    48  
    49  // EXPECT returns an object that allows the caller to indicate expected use.
    50  func (m *MockTimeoutProvider) EXPECT() *MockTimeoutProviderMockRecorder {
    51  	return m.recorder
    52  }
    53  
    54  // Timeouts mocks base method.
    55  func (m *MockTimeoutProvider) Timeouts(arg0 rpcinfo.RPCInfo) rpcinfo.Timeouts {
    56  	m.ctrl.T.Helper()
    57  	ret := m.ctrl.Call(m, "Timeouts", arg0)
    58  	ret0, _ := ret[0].(rpcinfo.Timeouts)
    59  	return ret0
    60  }
    61  
    62  // Timeouts indicates an expected call of Timeouts.
    63  func (mr *MockTimeoutProviderMockRecorder) Timeouts(arg0 interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timeouts", reflect.TypeOf((*MockTimeoutProvider)(nil).Timeouts), arg0)
    66  }