fakemetricsaccountant

package
v0.0.0-...-f627d75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2017 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeMetricsAccountant

type FakeMetricsAccountant struct {
	TrackReceivedHeartbeatsStub func(metric int) error

	TrackSavedHeartbeatsStub func(metric int) error

	IncrementSentMessageMetricsStub func(starts []models.PendingStartMessage, stops []models.PendingStopMessage) error
	// contains filtered or unexported fields
}

func (*FakeMetricsAccountant) IncrementSentMessageMetrics

func (fake *FakeMetricsAccountant) IncrementSentMessageMetrics(starts []models.PendingStartMessage, stops []models.PendingStopMessage) error

func (*FakeMetricsAccountant) IncrementSentMessageMetricsArgsForCall

func (fake *FakeMetricsAccountant) IncrementSentMessageMetricsArgsForCall(i int) ([]models.PendingStartMessage, []models.PendingStopMessage)

func (*FakeMetricsAccountant) IncrementSentMessageMetricsCallCount

func (fake *FakeMetricsAccountant) IncrementSentMessageMetricsCallCount() int

func (*FakeMetricsAccountant) IncrementSentMessageMetricsReturns

func (fake *FakeMetricsAccountant) IncrementSentMessageMetricsReturns(result1 error)

func (*FakeMetricsAccountant) Invocations

func (fake *FakeMetricsAccountant) Invocations() map[string][][]interface{}

func (*FakeMetricsAccountant) TrackReceivedHeartbeats

func (fake *FakeMetricsAccountant) TrackReceivedHeartbeats(metric int) error

func (*FakeMetricsAccountant) TrackReceivedHeartbeatsArgsForCall

func (fake *FakeMetricsAccountant) TrackReceivedHeartbeatsArgsForCall(i int) int

func (*FakeMetricsAccountant) TrackReceivedHeartbeatsCallCount

func (fake *FakeMetricsAccountant) TrackReceivedHeartbeatsCallCount() int

func (*FakeMetricsAccountant) TrackReceivedHeartbeatsReturns

func (fake *FakeMetricsAccountant) TrackReceivedHeartbeatsReturns(result1 error)

func (*FakeMetricsAccountant) TrackSavedHeartbeats

func (fake *FakeMetricsAccountant) TrackSavedHeartbeats(metric int) error

func (*FakeMetricsAccountant) TrackSavedHeartbeatsArgsForCall

func (fake *FakeMetricsAccountant) TrackSavedHeartbeatsArgsForCall(i int) int

func (*FakeMetricsAccountant) TrackSavedHeartbeatsCallCount

func (fake *FakeMetricsAccountant) TrackSavedHeartbeatsCallCount() int

func (*FakeMetricsAccountant) TrackSavedHeartbeatsReturns

func (fake *FakeMetricsAccountant) TrackSavedHeartbeatsReturns(result1 error)

type FakeUsageTracker

type FakeUsageTracker struct {
	StartTrackingUsageStub func()

	MeasureUsageStub func() (usage float64, measurementDuration time.Duration)
	// contains filtered or unexported fields
}

func (*FakeUsageTracker) Invocations

func (fake *FakeUsageTracker) Invocations() map[string][][]interface{}

func (*FakeUsageTracker) MeasureUsage

func (fake *FakeUsageTracker) MeasureUsage() (usage float64, measurementDuration time.Duration)

func (*FakeUsageTracker) MeasureUsageCallCount

func (fake *FakeUsageTracker) MeasureUsageCallCount() int

func (*FakeUsageTracker) MeasureUsageReturns

func (fake *FakeUsageTracker) MeasureUsageReturns(result1 float64, result2 time.Duration)

func (*FakeUsageTracker) StartTrackingUsage

func (fake *FakeUsageTracker) StartTrackingUsage()

func (*FakeUsageTracker) StartTrackingUsageCallCount

func (fake *FakeUsageTracker) StartTrackingUsageCallCount() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL