2018-07-19 20:41:29 +01:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
// Code generated by mockery v1.0.0. DO NOT EDIT.
|
|
|
|
package telemetry
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
|
|
|
|
mock "github.com/stretchr/testify/mock"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockClient is an autogenerated mock type for the client type
|
|
|
|
type MockClient struct {
|
|
|
|
mock.Mock
|
2018-08-27 18:28:16 +01:00
|
|
|
// client Client
|
2018-07-19 20:41:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Report provides a mock function with given fields: ctx
|
|
|
|
func (_m *MockClient) Report(ctx context.Context) error {
|
|
|
|
ret := _m.Called(ctx)
|
|
|
|
|
|
|
|
var r0 error
|
|
|
|
if rf, ok := ret.Get(0).(func(context.Context) error); ok {
|
|
|
|
r0 = rf(ctx)
|
|
|
|
} else {
|
|
|
|
r0 = ret.Error(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Run provides a mock function with given fields: ctx
|
|
|
|
func (_m *MockClient) Run(ctx context.Context) {
|
|
|
|
client, _ := NewClient("", ClientOpts{
|
|
|
|
Application: "qwe",
|
|
|
|
Instance: "",
|
|
|
|
Interval: 2,
|
|
|
|
PacketSize: 0,
|
|
|
|
})
|
|
|
|
|
|
|
|
client.Run(ctx)
|
|
|
|
}
|