-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_metrics.go
58 lines (49 loc) · 1.61 KB
/
mock_metrics.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
// Code generated by MockGen. DO NOT EDIT.
// Source: ./metrics.go
//
// Generated by this command:
//
// mockgen -destination=mock_metrics.go -package=nats -source=./metrics.go
//
// Package nats is a generated GoMock package.
package nats
import (
context "context"
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockMetrics is a mock of Metrics interface.
type MockMetrics struct {
ctrl *gomock.Controller
recorder *MockMetricsMockRecorder
isgomock struct{}
}
// MockMetricsMockRecorder is the mock recorder for MockMetrics.
type MockMetricsMockRecorder struct {
mock *MockMetrics
}
// NewMockMetrics creates a new mock instance.
func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics {
mock := &MockMetrics{ctrl: ctrl}
mock.recorder = &MockMetricsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder {
return m.recorder
}
// IncrementCounter mocks base method.
func (m *MockMetrics) IncrementCounter(ctx context.Context, name string, labels ...string) {
m.ctrl.T.Helper()
varargs := []any{ctx, name}
for _, a := range labels {
varargs = append(varargs, a)
}
m.ctrl.Call(m, "IncrementCounter", varargs...)
}
// IncrementCounter indicates an expected call of IncrementCounter.
func (mr *MockMetricsMockRecorder) IncrementCounter(ctx, name any, labels ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{ctx, name}, labels...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncrementCounter", reflect.TypeOf((*MockMetrics)(nil).IncrementCounter), varargs...)
}