This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
/
analytics_client.go
62 lines (52 loc) · 2.1 KB
/
analytics_client.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
50
51
52
53
54
55
56
57
58
59
60
61
62
// Code generated by MockGen. DO NOT EDIT.
// Source: code.cloudfoundry.org/cfdev/cmd/start (interfaces: AnalyticsClient)
// Package mocks is a generated GoMock package.
package mocks
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockAnalyticsClient is a mock of AnalyticsClient interface
type MockAnalyticsClient struct {
ctrl *gomock.Controller
recorder *MockAnalyticsClientMockRecorder
}
// MockAnalyticsClientMockRecorder is the mock recorder for MockAnalyticsClient
type MockAnalyticsClientMockRecorder struct {
mock *MockAnalyticsClient
}
// NewMockAnalyticsClient creates a new mock instance
func NewMockAnalyticsClient(ctrl *gomock.Controller) *MockAnalyticsClient {
mock := &MockAnalyticsClient{ctrl: ctrl}
mock.recorder = &MockAnalyticsClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockAnalyticsClient) EXPECT() *MockAnalyticsClientMockRecorder {
return m.recorder
}
// Event mocks base method
func (m *MockAnalyticsClient) Event(arg0 string, arg1 ...map[string]interface{}) error {
varargs := []interface{}{arg0}
for _, a := range arg1 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Event", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// Event indicates an expected call of Event
func (mr *MockAnalyticsClientMockRecorder) Event(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
varargs := append([]interface{}{arg0}, arg1...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Event", reflect.TypeOf((*MockAnalyticsClient)(nil).Event), varargs...)
}
// PromptOptInIfNeeded mocks base method
func (m *MockAnalyticsClient) PromptOptInIfNeeded(arg0 string) error {
ret := m.ctrl.Call(m, "PromptOptInIfNeeded", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// PromptOptInIfNeeded indicates an expected call of PromptOptInIfNeeded
func (mr *MockAnalyticsClientMockRecorder) PromptOptInIfNeeded(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PromptOptInIfNeeded", reflect.TypeOf((*MockAnalyticsClient)(nil).PromptOptInIfNeeded), arg0)
}