mock_client.go 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: github.com/prometheus/client_golang/api (interfaces: Client)
  3. // Package mocks is a generated GoMock package.
  4. package mocks
  5. import (
  6. context "context"
  7. gomock "github.com/golang/mock/gomock"
  8. http "net/http"
  9. url "net/url"
  10. reflect "reflect"
  11. )
  12. // MockClient is a mock of Client interface
  13. type MockClient struct {
  14. ctrl *gomock.Controller
  15. recorder *MockClientMockRecorder
  16. }
  17. // MockClientMockRecorder is the mock recorder for MockClient
  18. type MockClientMockRecorder struct {
  19. mock *MockClient
  20. }
  21. // NewMockClient creates a new mock instance
  22. func NewMockClient(ctrl *gomock.Controller) *MockClient {
  23. mock := &MockClient{ctrl: ctrl}
  24. mock.recorder = &MockClientMockRecorder{mock}
  25. return mock
  26. }
  27. // EXPECT returns an object that allows the caller to indicate expected use
  28. func (m *MockClient) EXPECT() *MockClientMockRecorder {
  29. return m.recorder
  30. }
  31. // Do mocks base method
  32. func (m *MockClient) Do(arg0 context.Context, arg1 *http.Request) (*http.Response, []byte, error) {
  33. m.ctrl.T.Helper()
  34. ret := m.ctrl.Call(m, "Do", arg0, arg1)
  35. ret0, _ := ret[0].(*http.Response)
  36. ret1, _ := ret[1].([]byte)
  37. ret2, _ := ret[2].(error)
  38. return ret0, ret1, ret2
  39. }
  40. // Do indicates an expected call of Do
  41. func (mr *MockClientMockRecorder) Do(arg0, arg1 interface{}) *gomock.Call {
  42. mr.mock.ctrl.T.Helper()
  43. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockClient)(nil).Do), arg0, arg1)
  44. }
  45. // URL mocks base method
  46. func (m *MockClient) URL(arg0 string, arg1 map[string]string) *url.URL {
  47. m.ctrl.T.Helper()
  48. ret := m.ctrl.Call(m, "URL", arg0, arg1)
  49. ret0, _ := ret[0].(*url.URL)
  50. return ret0
  51. }
  52. // URL indicates an expected call of URL
  53. func (mr *MockClientMockRecorder) URL(arg0, arg1 interface{}) *gomock.Call {
  54. mr.mock.ctrl.T.Helper()
  55. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "URL", reflect.TypeOf((*MockClient)(nil).URL), arg0, arg1)
  56. }