client.go 826 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Code generated by mockery v2.10.0. DO NOT EDIT.
  2. package mocks
  3. import (
  4. context "context"
  5. mock "github.com/stretchr/testify/mock"
  6. model "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/riakreceiver/internal/model"
  7. )
  8. // client is an autogenerated mock type for the client type
  9. type MockClient struct {
  10. mock.Mock
  11. }
  12. // GetStats provides a mock function with given fields: ctx
  13. func (_m *MockClient) GetStats(ctx context.Context) (*model.Stats, error) {
  14. ret := _m.Called(ctx)
  15. var r0 *model.Stats
  16. if rf, ok := ret.Get(0).(func(context.Context) *model.Stats); ok {
  17. r0 = rf(ctx)
  18. } else {
  19. if ret.Get(0) != nil {
  20. r0 = ret.Get(0).(*model.Stats)
  21. }
  22. }
  23. var r1 error
  24. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  25. r1 = rf(ctx)
  26. } else {
  27. r1 = ret.Error(1)
  28. }
  29. return r0, r1
  30. }