-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathmock_client.go
More file actions
54 lines (44 loc) · 1.55 KB
/
mock_client.go
File metadata and controls
54 lines (44 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright The Linux Foundation and each contributor to CommunityBridge.
// SPDX-License-Identifier: MIT
// Code generated by MockGen. DO NOT EDIT.
// Source: api_client/api_client.go
// Package mock_apiclient is a generated GoMock package.
package mock_apiclient
import (
context "context"
http "net/http"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockAPIClient is a mock of APIClient interface.
type MockAPIClient struct {
ctrl *gomock.Controller
recorder *MockAPIClientMockRecorder
}
// MockAPIClientMockRecorder is the mock recorder for MockAPIClient.
type MockAPIClientMockRecorder struct {
mock *MockAPIClient
}
// NewMockAPIClient creates a new mock instance.
func NewMockAPIClient(ctrl *gomock.Controller) *MockAPIClient {
mock := &MockAPIClient{ctrl: ctrl}
mock.recorder = &MockAPIClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAPIClient) EXPECT() *MockAPIClientMockRecorder {
return m.recorder
}
// GetData mocks base method.
func (m *MockAPIClient) GetData(ctx context.Context, url string) (*http.Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetData", ctx, url)
ret0, _ := ret[0].(*http.Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetData indicates an expected call of GetData.
func (mr *MockAPIClientMockRecorder) GetData(ctx, url interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetData", reflect.TypeOf((*MockAPIClient)(nil).GetData), ctx, url)
}