mocks

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStatSender

type MockStatSender struct {
	Output chan MockStatSenderMethod
	// contains filtered or unexported fields
}

MockStatSender is a mock of StatSender interface.

func NewMockStatSender

func NewMockStatSender(amount int) *MockStatSender

NewMockStatSender creates a new mock instance.

func (*MockStatSender) CHECK

func (m *MockStatSender) CHECK(t *testing.T)

func (*MockStatSender) Dec

func (m *MockStatSender) Dec(s string, i int64, f float32, tag ...statsd.Tag) error

func (*MockStatSender) EXPECT

func (m *MockStatSender) EXPECT(method ...MockStatSenderMethod)

func (*MockStatSender) Gauge

func (m *MockStatSender) Gauge(s string, i int64, f float32, tag ...statsd.Tag) error

func (*MockStatSender) GaugeDelta

func (m *MockStatSender) GaugeDelta(s string, i int64, f float32, tag ...statsd.Tag) error

func (*MockStatSender) Inc

func (m *MockStatSender) Inc(s string, i int64, f float32, tag ...statsd.Tag) error

func (*MockStatSender) Raw

func (m *MockStatSender) Raw(s string, s2 string, f float32, tag ...statsd.Tag) error

func (*MockStatSender) Set

func (m *MockStatSender) Set(s string, s2 string, f float32, tag ...statsd.Tag) error

func (*MockStatSender) SetInt

func (m *MockStatSender) SetInt(s string, i int64, f float32, tag ...statsd.Tag) error

func (*MockStatSender) Timing

func (m *MockStatSender) Timing(s string, i int64, f float32, tag ...statsd.Tag) error

func (*MockStatSender) TimingDuration

func (m *MockStatSender) TimingDuration(s string, duration time.Duration, f float32, tag ...statsd.Tag) error

type MockStatSenderMethod

type MockStatSenderMethod struct {
	Method   string
	S        string
	S2       string
	I        int64
	Duration time.Duration
	F        float32
	Tags     []statsd.Tag
	// contains filtered or unexported fields
}

func (*MockStatSenderMethod) Call

func (mm *MockStatSenderMethod) Call(sender statsd.StatSender) error

func (*MockStatSenderMethod) EqualTags

func (mm *MockStatSenderMethod) EqualTags(other *MockStatSenderMethod) bool

func (*MockStatSenderMethod) Equals

func (mm *MockStatSenderMethod) Equals(other *MockStatSenderMethod) bool

Jump to

Keyboard shortcuts

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