Documentation ¶
Overview ¶
Package mock_usage_metrics is a generated GoMock package.
Index ¶
- type MockCounter
- type MockCounterIncCall
- type MockCounterMockRecorder
- type MockUniqueCounter
- type MockUniqueCounterAddCall
- type MockUniqueCounterMockRecorder
- type MockUsageTrackerInterface
- func (m *MockUsageTrackerInterface) CloneUsageData() *usage_metrics.UsageData
- func (m *MockUsageTrackerInterface) EXPECT() *MockUsageTrackerInterfaceMockRecorder
- func (m *MockUsageTrackerInterface) RegisterCounter(arg0 string) usage_metrics.Counter
- func (m *MockUsageTrackerInterface) RegisterUniqueCounter(arg0 string) usage_metrics.UniqueCounter
- func (m *MockUsageTrackerInterface) Subtract(arg0 *usage_metrics.UsageData)
- type MockUsageTrackerInterfaceCloneUsageDataCall
- func (c *MockUsageTrackerInterfaceCloneUsageDataCall) Do(f func() *usage_metrics.UsageData) *MockUsageTrackerInterfaceCloneUsageDataCall
- func (c *MockUsageTrackerInterfaceCloneUsageDataCall) DoAndReturn(f func() *usage_metrics.UsageData) *MockUsageTrackerInterfaceCloneUsageDataCall
- func (c *MockUsageTrackerInterfaceCloneUsageDataCall) Return(arg0 *usage_metrics.UsageData) *MockUsageTrackerInterfaceCloneUsageDataCall
- type MockUsageTrackerInterfaceMockRecorder
- func (mr *MockUsageTrackerInterfaceMockRecorder) CloneUsageData() *MockUsageTrackerInterfaceCloneUsageDataCall
- func (mr *MockUsageTrackerInterfaceMockRecorder) RegisterCounter(arg0 any) *MockUsageTrackerInterfaceRegisterCounterCall
- func (mr *MockUsageTrackerInterfaceMockRecorder) RegisterUniqueCounter(arg0 any) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
- func (mr *MockUsageTrackerInterfaceMockRecorder) Subtract(arg0 any) *MockUsageTrackerInterfaceSubtractCall
- type MockUsageTrackerInterfaceRegisterCounterCall
- func (c *MockUsageTrackerInterfaceRegisterCounterCall) Do(f func(string) usage_metrics.Counter) *MockUsageTrackerInterfaceRegisterCounterCall
- func (c *MockUsageTrackerInterfaceRegisterCounterCall) DoAndReturn(f func(string) usage_metrics.Counter) *MockUsageTrackerInterfaceRegisterCounterCall
- func (c *MockUsageTrackerInterfaceRegisterCounterCall) Return(arg0 usage_metrics.Counter) *MockUsageTrackerInterfaceRegisterCounterCall
- type MockUsageTrackerInterfaceRegisterUniqueCounterCall
- func (c *MockUsageTrackerInterfaceRegisterUniqueCounterCall) Do(f func(string) usage_metrics.UniqueCounter) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
- func (c *MockUsageTrackerInterfaceRegisterUniqueCounterCall) DoAndReturn(f func(string) usage_metrics.UniqueCounter) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
- func (c *MockUsageTrackerInterfaceRegisterUniqueCounterCall) Return(arg0 usage_metrics.UniqueCounter) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
- type MockUsageTrackerInterfaceSubtractCall
- func (c *MockUsageTrackerInterfaceSubtractCall) Do(f func(*usage_metrics.UsageData)) *MockUsageTrackerInterfaceSubtractCall
- func (c *MockUsageTrackerInterfaceSubtractCall) DoAndReturn(f func(*usage_metrics.UsageData)) *MockUsageTrackerInterfaceSubtractCall
- func (c *MockUsageTrackerInterfaceSubtractCall) Return() *MockUsageTrackerInterfaceSubtractCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCounter ¶
type MockCounter struct {
// contains filtered or unexported fields
}
MockCounter is a mock of Counter interface.
func NewMockCounter ¶
func NewMockCounter(ctrl *gomock.Controller) *MockCounter
NewMockCounter creates a new mock instance.
func (*MockCounter) EXPECT ¶
func (m *MockCounter) EXPECT() *MockCounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCounterIncCall ¶ added in v16.8.0
MockCounterIncCall wrap *gomock.Call
func (*MockCounterIncCall) Do ¶ added in v16.8.0
func (c *MockCounterIncCall) Do(f func()) *MockCounterIncCall
Do rewrite *gomock.Call.Do
func (*MockCounterIncCall) DoAndReturn ¶ added in v16.8.0
func (c *MockCounterIncCall) DoAndReturn(f func()) *MockCounterIncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCounterIncCall) Return ¶ added in v16.8.0
func (c *MockCounterIncCall) Return() *MockCounterIncCall
Return rewrite *gomock.Call.Return
type MockCounterMockRecorder ¶
type MockCounterMockRecorder struct {
// contains filtered or unexported fields
}
MockCounterMockRecorder is the mock recorder for MockCounter.
func (*MockCounterMockRecorder) Inc ¶
func (mr *MockCounterMockRecorder) Inc() *MockCounterIncCall
Inc indicates an expected call of Inc.
type MockUniqueCounter ¶
type MockUniqueCounter struct {
// contains filtered or unexported fields
}
MockUniqueCounter is a mock of UniqueCounter interface.
func NewMockUniqueCounter ¶
func NewMockUniqueCounter(ctrl *gomock.Controller) *MockUniqueCounter
NewMockUniqueCounter creates a new mock instance.
func (*MockUniqueCounter) EXPECT ¶
func (m *MockUniqueCounter) EXPECT() *MockUniqueCounterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUniqueCounterAddCall ¶ added in v16.8.0
MockUniqueCounterAddCall wrap *gomock.Call
func (*MockUniqueCounterAddCall) Do ¶ added in v16.8.0
func (c *MockUniqueCounterAddCall) Do(f func(int64)) *MockUniqueCounterAddCall
Do rewrite *gomock.Call.Do
func (*MockUniqueCounterAddCall) DoAndReturn ¶ added in v16.8.0
func (c *MockUniqueCounterAddCall) DoAndReturn(f func(int64)) *MockUniqueCounterAddCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUniqueCounterAddCall) Return ¶ added in v16.8.0
func (c *MockUniqueCounterAddCall) Return() *MockUniqueCounterAddCall
Return rewrite *gomock.Call.Return
type MockUniqueCounterMockRecorder ¶
type MockUniqueCounterMockRecorder struct {
// contains filtered or unexported fields
}
MockUniqueCounterMockRecorder is the mock recorder for MockUniqueCounter.
func (*MockUniqueCounterMockRecorder) Add ¶
func (mr *MockUniqueCounterMockRecorder) Add(arg0 any) *MockUniqueCounterAddCall
Add indicates an expected call of Add.
type MockUsageTrackerInterface ¶
type MockUsageTrackerInterface struct {
// contains filtered or unexported fields
}
MockUsageTrackerInterface is a mock of UsageTrackerInterface interface.
func NewMockUsageTrackerInterface ¶
func NewMockUsageTrackerInterface(ctrl *gomock.Controller) *MockUsageTrackerInterface
NewMockUsageTrackerInterface creates a new mock instance.
func (*MockUsageTrackerInterface) CloneUsageData ¶
func (m *MockUsageTrackerInterface) CloneUsageData() *usage_metrics.UsageData
CloneUsageData mocks base method.
func (*MockUsageTrackerInterface) EXPECT ¶
func (m *MockUsageTrackerInterface) EXPECT() *MockUsageTrackerInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUsageTrackerInterface) RegisterCounter ¶
func (m *MockUsageTrackerInterface) RegisterCounter(arg0 string) usage_metrics.Counter
RegisterCounter mocks base method.
func (*MockUsageTrackerInterface) RegisterUniqueCounter ¶
func (m *MockUsageTrackerInterface) RegisterUniqueCounter(arg0 string) usage_metrics.UniqueCounter
RegisterUniqueCounter mocks base method.
func (*MockUsageTrackerInterface) Subtract ¶
func (m *MockUsageTrackerInterface) Subtract(arg0 *usage_metrics.UsageData)
Subtract mocks base method.
type MockUsageTrackerInterfaceCloneUsageDataCall ¶ added in v16.8.0
MockUsageTrackerInterfaceCloneUsageDataCall wrap *gomock.Call
func (*MockUsageTrackerInterfaceCloneUsageDataCall) Do ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceCloneUsageDataCall) Do(f func() *usage_metrics.UsageData) *MockUsageTrackerInterfaceCloneUsageDataCall
Do rewrite *gomock.Call.Do
func (*MockUsageTrackerInterfaceCloneUsageDataCall) DoAndReturn ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceCloneUsageDataCall) DoAndReturn(f func() *usage_metrics.UsageData) *MockUsageTrackerInterfaceCloneUsageDataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUsageTrackerInterfaceCloneUsageDataCall) Return ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceCloneUsageDataCall) Return(arg0 *usage_metrics.UsageData) *MockUsageTrackerInterfaceCloneUsageDataCall
Return rewrite *gomock.Call.Return
type MockUsageTrackerInterfaceMockRecorder ¶
type MockUsageTrackerInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockUsageTrackerInterfaceMockRecorder is the mock recorder for MockUsageTrackerInterface.
func (*MockUsageTrackerInterfaceMockRecorder) CloneUsageData ¶
func (mr *MockUsageTrackerInterfaceMockRecorder) CloneUsageData() *MockUsageTrackerInterfaceCloneUsageDataCall
CloneUsageData indicates an expected call of CloneUsageData.
func (*MockUsageTrackerInterfaceMockRecorder) RegisterCounter ¶
func (mr *MockUsageTrackerInterfaceMockRecorder) RegisterCounter(arg0 any) *MockUsageTrackerInterfaceRegisterCounterCall
RegisterCounter indicates an expected call of RegisterCounter.
func (*MockUsageTrackerInterfaceMockRecorder) RegisterUniqueCounter ¶
func (mr *MockUsageTrackerInterfaceMockRecorder) RegisterUniqueCounter(arg0 any) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
RegisterUniqueCounter indicates an expected call of RegisterUniqueCounter.
func (*MockUsageTrackerInterfaceMockRecorder) Subtract ¶
func (mr *MockUsageTrackerInterfaceMockRecorder) Subtract(arg0 any) *MockUsageTrackerInterfaceSubtractCall
Subtract indicates an expected call of Subtract.
type MockUsageTrackerInterfaceRegisterCounterCall ¶ added in v16.8.0
MockUsageTrackerInterfaceRegisterCounterCall wrap *gomock.Call
func (*MockUsageTrackerInterfaceRegisterCounterCall) Do ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceRegisterCounterCall) Do(f func(string) usage_metrics.Counter) *MockUsageTrackerInterfaceRegisterCounterCall
Do rewrite *gomock.Call.Do
func (*MockUsageTrackerInterfaceRegisterCounterCall) DoAndReturn ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceRegisterCounterCall) DoAndReturn(f func(string) usage_metrics.Counter) *MockUsageTrackerInterfaceRegisterCounterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUsageTrackerInterfaceRegisterCounterCall) Return ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceRegisterCounterCall) Return(arg0 usage_metrics.Counter) *MockUsageTrackerInterfaceRegisterCounterCall
Return rewrite *gomock.Call.Return
type MockUsageTrackerInterfaceRegisterUniqueCounterCall ¶ added in v16.8.0
MockUsageTrackerInterfaceRegisterUniqueCounterCall wrap *gomock.Call
func (*MockUsageTrackerInterfaceRegisterUniqueCounterCall) Do ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceRegisterUniqueCounterCall) Do(f func(string) usage_metrics.UniqueCounter) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
Do rewrite *gomock.Call.Do
func (*MockUsageTrackerInterfaceRegisterUniqueCounterCall) DoAndReturn ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceRegisterUniqueCounterCall) DoAndReturn(f func(string) usage_metrics.UniqueCounter) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUsageTrackerInterfaceRegisterUniqueCounterCall) Return ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceRegisterUniqueCounterCall) Return(arg0 usage_metrics.UniqueCounter) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
Return rewrite *gomock.Call.Return
type MockUsageTrackerInterfaceSubtractCall ¶ added in v16.8.0
MockUsageTrackerInterfaceSubtractCall wrap *gomock.Call
func (*MockUsageTrackerInterfaceSubtractCall) Do ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceSubtractCall) Do(f func(*usage_metrics.UsageData)) *MockUsageTrackerInterfaceSubtractCall
Do rewrite *gomock.Call.Do
func (*MockUsageTrackerInterfaceSubtractCall) DoAndReturn ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceSubtractCall) DoAndReturn(f func(*usage_metrics.UsageData)) *MockUsageTrackerInterfaceSubtractCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUsageTrackerInterfaceSubtractCall) Return ¶ added in v16.8.0
func (c *MockUsageTrackerInterfaceSubtractCall) Return() *MockUsageTrackerInterfaceSubtractCall
Return rewrite *gomock.Call.Return