github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/apiserver/common/crossmodel/mocks/http_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: net/http (interfaces: RoundTripper)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -package mocks -destination mocks/http_mock.go net/http RoundTripper
     7  //
     8  
     9  // Package mocks is a generated GoMock package.
    10  package mocks
    11  
    12  import (
    13  	http "net/http"
    14  	reflect "reflect"
    15  
    16  	gomock "go.uber.org/mock/gomock"
    17  )
    18  
    19  // MockRoundTripper is a mock of RoundTripper interface.
    20  type MockRoundTripper struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockRoundTripperMockRecorder
    23  }
    24  
    25  // MockRoundTripperMockRecorder is the mock recorder for MockRoundTripper.
    26  type MockRoundTripperMockRecorder struct {
    27  	mock *MockRoundTripper
    28  }
    29  
    30  // NewMockRoundTripper creates a new mock instance.
    31  func NewMockRoundTripper(ctrl *gomock.Controller) *MockRoundTripper {
    32  	mock := &MockRoundTripper{ctrl: ctrl}
    33  	mock.recorder = &MockRoundTripperMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockRoundTripper) EXPECT() *MockRoundTripperMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // RoundTrip mocks base method.
    43  func (m *MockRoundTripper) RoundTrip(arg0 *http.Request) (*http.Response, error) {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "RoundTrip", arg0)
    46  	ret0, _ := ret[0].(*http.Response)
    47  	ret1, _ := ret[1].(error)
    48  	return ret0, ret1
    49  }
    50  
    51  // RoundTrip indicates an expected call of RoundTrip.
    52  func (mr *MockRoundTripperMockRecorder) RoundTrip(arg0 any) *gomock.Call {
    53  	mr.mock.ctrl.T.Helper()
    54  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RoundTrip", reflect.TypeOf((*MockRoundTripper)(nil).RoundTrip), arg0)
    55  }