Documentation ¶
Index ¶
- type MockStatSender
- func (m *MockStatSender) CHECK(t *testing.T)
- func (m *MockStatSender) Dec(s string, i int64, f float32, tag ...statsd.Tag) error
- func (m *MockStatSender) EXPECT(method ...MockStatSenderMethod)
- func (m *MockStatSender) Gauge(s string, i int64, f float32, tag ...statsd.Tag) error
- func (m *MockStatSender) GaugeDelta(s string, i int64, f float32, tag ...statsd.Tag) error
- func (m *MockStatSender) Inc(s string, i int64, f float32, tag ...statsd.Tag) error
- func (m *MockStatSender) Raw(s string, s2 string, f float32, tag ...statsd.Tag) error
- func (m *MockStatSender) Set(s string, s2 string, f float32, tag ...statsd.Tag) error
- func (m *MockStatSender) SetInt(s string, i int64, f float32, tag ...statsd.Tag) error
- func (m *MockStatSender) Timing(s string, i int64, f float32, tag ...statsd.Tag) error
- func (m *MockStatSender) TimingDuration(s string, duration time.Duration, f float32, tag ...statsd.Tag) error
- type MockStatSenderMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStatSender ¶
type MockStatSender struct { Output []*MockStatSenderMethod // contains filtered or unexported fields }
MockStatSender is a mock of StatSender interface.
func NewMockStatSender ¶
func NewMockStatSender() *MockStatSender
NewMockStatSender creates a new mock instance.
func (*MockStatSender) CHECK ¶
func (m *MockStatSender) CHECK(t *testing.T)
func (*MockStatSender) EXPECT ¶
func (m *MockStatSender) EXPECT(method ...MockStatSenderMethod)
func (*MockStatSender) GaugeDelta ¶
func (*MockStatSender) TimingDuration ¶
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
Click to show internal directories.
Click to hide internal directories.