storj/pkg/telemetry/mock_client_test.go
Yehor Butko 7ea075ce9e Unit Tests for logging.go added (#148)
* Unit Tests for logging.go added.

* Unit Tests for logging.go added part 2

* Unit tests added for Utils package
2018-07-19 15:41:29 -04:00

44 lines
863 B
Go

// 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
client Client
}
// 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)
}