/
ec2_mock.go
49 lines (40 loc) · 1.37 KB
/
ec2_mock.go
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
// Code generated by MockGen. DO NOT EDIT.
// Source: ec2.go
package client
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockEC2Client is a mock of EC2Client interface.
type MockEC2Client struct {
ctrl *gomock.Controller
recorder *MockEC2ClientMockRecorder
}
// MockEC2ClientMockRecorder is the mock recorder for MockEC2Client.
type MockEC2ClientMockRecorder struct {
mock *MockEC2Client
}
// NewMockEC2Client creates a new mock instance.
func NewMockEC2Client(ctrl *gomock.Controller) *MockEC2Client {
mock := &MockEC2Client{ctrl: ctrl}
mock.recorder = &MockEC2ClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockEC2Client) EXPECT() *MockEC2ClientMockRecorder {
return m.recorder
}
// DescribeRegions mocks base method.
func (m *MockEC2Client) DescribeRegions(ctx context.Context) ([]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeRegions", ctx)
ret0, _ := ret[0].([]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeRegions indicates an expected call of DescribeRegions.
func (mr *MockEC2ClientMockRecorder) DescribeRegions(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeRegions", reflect.TypeOf((*MockEC2Client)(nil).DescribeRegions), ctx)
}