github.com/verrazzano/verrazzano@v1.7.0/platform-operator/mocks/requestsender_mock.go (about)

     1  // Copyright (c) 2021, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  // Code generated by MockGen. DO NOT EDIT.
     5  // Source: platform-operator/controllers/clusters/rancher.go
     6  
     7  // Package mocks is a generated GoMock package.
     8  package mocks
     9  
    10  import (
    11  	http "net/http"
    12  	reflect "reflect"
    13  
    14  	gomock "github.com/golang/mock/gomock"
    15  )
    16  
    17  // MockrequestSender is a mock of requestSender interface.
    18  type MockRequestSender struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockrequestSenderMockRecorder
    21  }
    22  
    23  // MockrequestSenderMockRecorder is the mock recorder for MockrequestSender.
    24  type MockrequestSenderMockRecorder struct {
    25  	mock *MockRequestSender
    26  }
    27  
    28  // NewMockrequestSender creates a new mock instance.
    29  func NewMockRequestSender(ctrl *gomock.Controller) *MockRequestSender {
    30  	mock := &MockRequestSender{ctrl: ctrl}
    31  	mock.recorder = &MockrequestSenderMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use.
    36  func (m *MockRequestSender) EXPECT() *MockrequestSenderMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // Do mocks base method.
    41  func (m *MockRequestSender) Do(httpClient *http.Client, req *http.Request) (*http.Response, error) {
    42  	m.ctrl.T.Helper()
    43  	ret := m.ctrl.Call(m, "Do", httpClient, req)
    44  	ret0, _ := ret[0].(*http.Response)
    45  	ret1, _ := ret[1].(error)
    46  	return ret0, ret1
    47  }
    48  
    49  // Do indicates an expected call of Do.
    50  func (mr *MockrequestSenderMockRecorder) Do(httpClient, req interface{}) *gomock.Call {
    51  	mr.mock.ctrl.T.Helper()
    52  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockRequestSender)(nil).Do), httpClient, req)
    53  }