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(name string) usage_metrics.Counter
- func (m *MockUsageTrackerInterface) RegisterUniqueCounter(name string) usage_metrics.UniqueCounter
- func (m *MockUsageTrackerInterface) Subtract(data *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(name any) *MockUsageTrackerInterfaceRegisterCounterCall
- func (mr *MockUsageTrackerInterfaceMockRecorder) RegisterUniqueCounter(name any) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
- func (mr *MockUsageTrackerInterfaceMockRecorder) Subtract(data 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 ¶
MockCounterIncCall wrap *gomock.Call
func (*MockCounterIncCall) Do ¶
func (c *MockCounterIncCall) Do(f func()) *MockCounterIncCall
Do rewrite *gomock.Call.Do
func (*MockCounterIncCall) DoAndReturn ¶
func (c *MockCounterIncCall) DoAndReturn(f func()) *MockCounterIncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCounterIncCall) Return ¶
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 ¶
MockUniqueCounterAddCall wrap *gomock.Call
func (*MockUniqueCounterAddCall) Do ¶
func (c *MockUniqueCounterAddCall) Do(f func(int64)) *MockUniqueCounterAddCall
Do rewrite *gomock.Call.Do
func (*MockUniqueCounterAddCall) DoAndReturn ¶
func (c *MockUniqueCounterAddCall) DoAndReturn(f func(int64)) *MockUniqueCounterAddCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUniqueCounterAddCall) Return ¶
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(name string) usage_metrics.Counter
RegisterCounter mocks base method.
func (*MockUsageTrackerInterface) RegisterUniqueCounter ¶
func (m *MockUsageTrackerInterface) RegisterUniqueCounter(name string) usage_metrics.UniqueCounter
RegisterUniqueCounter mocks base method.
func (*MockUsageTrackerInterface) Subtract ¶
func (m *MockUsageTrackerInterface) Subtract(data *usage_metrics.UsageData)
Subtract mocks base method.
type MockUsageTrackerInterfaceCloneUsageDataCall ¶
MockUsageTrackerInterfaceCloneUsageDataCall wrap *gomock.Call
func (*MockUsageTrackerInterfaceCloneUsageDataCall) Do ¶
func (c *MockUsageTrackerInterfaceCloneUsageDataCall) Do(f func() *usage_metrics.UsageData) *MockUsageTrackerInterfaceCloneUsageDataCall
Do rewrite *gomock.Call.Do
func (*MockUsageTrackerInterfaceCloneUsageDataCall) DoAndReturn ¶
func (c *MockUsageTrackerInterfaceCloneUsageDataCall) DoAndReturn(f func() *usage_metrics.UsageData) *MockUsageTrackerInterfaceCloneUsageDataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUsageTrackerInterfaceCloneUsageDataCall) Return ¶
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(name any) *MockUsageTrackerInterfaceRegisterCounterCall
RegisterCounter indicates an expected call of RegisterCounter.
func (*MockUsageTrackerInterfaceMockRecorder) RegisterUniqueCounter ¶
func (mr *MockUsageTrackerInterfaceMockRecorder) RegisterUniqueCounter(name any) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
RegisterUniqueCounter indicates an expected call of RegisterUniqueCounter.
func (*MockUsageTrackerInterfaceMockRecorder) Subtract ¶
func (mr *MockUsageTrackerInterfaceMockRecorder) Subtract(data any) *MockUsageTrackerInterfaceSubtractCall
Subtract indicates an expected call of Subtract.
type MockUsageTrackerInterfaceRegisterCounterCall ¶
MockUsageTrackerInterfaceRegisterCounterCall wrap *gomock.Call
func (*MockUsageTrackerInterfaceRegisterCounterCall) Do ¶
func (c *MockUsageTrackerInterfaceRegisterCounterCall) Do(f func(string) usage_metrics.Counter) *MockUsageTrackerInterfaceRegisterCounterCall
Do rewrite *gomock.Call.Do
func (*MockUsageTrackerInterfaceRegisterCounterCall) DoAndReturn ¶
func (c *MockUsageTrackerInterfaceRegisterCounterCall) DoAndReturn(f func(string) usage_metrics.Counter) *MockUsageTrackerInterfaceRegisterCounterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUsageTrackerInterfaceRegisterCounterCall) Return ¶
func (c *MockUsageTrackerInterfaceRegisterCounterCall) Return(arg0 usage_metrics.Counter) *MockUsageTrackerInterfaceRegisterCounterCall
Return rewrite *gomock.Call.Return
type MockUsageTrackerInterfaceRegisterUniqueCounterCall ¶
MockUsageTrackerInterfaceRegisterUniqueCounterCall wrap *gomock.Call
func (*MockUsageTrackerInterfaceRegisterUniqueCounterCall) Do ¶
func (c *MockUsageTrackerInterfaceRegisterUniqueCounterCall) Do(f func(string) usage_metrics.UniqueCounter) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
Do rewrite *gomock.Call.Do
func (*MockUsageTrackerInterfaceRegisterUniqueCounterCall) DoAndReturn ¶
func (c *MockUsageTrackerInterfaceRegisterUniqueCounterCall) DoAndReturn(f func(string) usage_metrics.UniqueCounter) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUsageTrackerInterfaceRegisterUniqueCounterCall) Return ¶
func (c *MockUsageTrackerInterfaceRegisterUniqueCounterCall) Return(arg0 usage_metrics.UniqueCounter) *MockUsageTrackerInterfaceRegisterUniqueCounterCall
Return rewrite *gomock.Call.Return
type MockUsageTrackerInterfaceSubtractCall ¶
MockUsageTrackerInterfaceSubtractCall wrap *gomock.Call
func (*MockUsageTrackerInterfaceSubtractCall) Do ¶
func (c *MockUsageTrackerInterfaceSubtractCall) Do(f func(*usage_metrics.UsageData)) *MockUsageTrackerInterfaceSubtractCall
Do rewrite *gomock.Call.Do
func (*MockUsageTrackerInterfaceSubtractCall) DoAndReturn ¶
func (c *MockUsageTrackerInterfaceSubtractCall) DoAndReturn(f func(*usage_metrics.UsageData)) *MockUsageTrackerInterfaceSubtractCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUsageTrackerInterfaceSubtractCall) Return ¶
func (c *MockUsageTrackerInterfaceSubtractCall) Return() *MockUsageTrackerInterfaceSubtractCall
Return rewrite *gomock.Call.Return