-
Notifications
You must be signed in to change notification settings - Fork 14
/
event.go
68 lines (56 loc) · 2.8 KB
/
event.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
63
64
65
66
67
68
// Code generated by MockGen. DO NOT EDIT.
// Source: event.go
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
time "time"
gomock "go.uber.org/mock/gomock"
v2 "github.com/bucketeer-io/bucketeer/pkg/eventcounter/storage/v2"
)
// MockEventStorage is a mock of EventStorage interface.
type MockEventStorage struct {
ctrl *gomock.Controller
recorder *MockEventStorageMockRecorder
}
// MockEventStorageMockRecorder is the mock recorder for MockEventStorage.
type MockEventStorageMockRecorder struct {
mock *MockEventStorage
}
// NewMockEventStorage creates a new mock instance.
func NewMockEventStorage(ctrl *gomock.Controller) *MockEventStorage {
mock := &MockEventStorage{ctrl: ctrl}
mock.recorder = &MockEventStorageMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockEventStorage) EXPECT() *MockEventStorageMockRecorder {
return m.recorder
}
// QueryEvaluationCount mocks base method.
func (m *MockEventStorage) QueryEvaluationCount(ctx context.Context, environmentNamespace string, startAt, endAt time.Time, featureID string, featureVersion int32) ([]*v2.EvaluationEventCount, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "QueryEvaluationCount", ctx, environmentNamespace, startAt, endAt, featureID, featureVersion)
ret0, _ := ret[0].([]*v2.EvaluationEventCount)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// QueryEvaluationCount indicates an expected call of QueryEvaluationCount.
func (mr *MockEventStorageMockRecorder) QueryEvaluationCount(ctx, environmentNamespace, startAt, endAt, featureID, featureVersion interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryEvaluationCount", reflect.TypeOf((*MockEventStorage)(nil).QueryEvaluationCount), ctx, environmentNamespace, startAt, endAt, featureID, featureVersion)
}
// QueryGoalCount mocks base method.
func (m *MockEventStorage) QueryGoalCount(ctx context.Context, environmentNamespace string, startAt, endAt time.Time, goalID, featureID string, featureVersion int32) ([]*v2.GoalEventCount, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "QueryGoalCount", ctx, environmentNamespace, startAt, endAt, goalID, featureID, featureVersion)
ret0, _ := ret[0].([]*v2.GoalEventCount)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// QueryGoalCount indicates an expected call of QueryGoalCount.
func (mr *MockEventStorageMockRecorder) QueryGoalCount(ctx, environmentNamespace, startAt, endAt, goalID, featureID, featureVersion interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryGoalCount", reflect.TypeOf((*MockEventStorage)(nil).QueryGoalCount), ctx, environmentNamespace, startAt, endAt, goalID, featureID, featureVersion)
}