nodeGetter.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Code generated by mockery v2.13.1. DO NOT EDIT.
  2. package mocks
  3. import (
  4. mock "github.com/stretchr/testify/mock"
  5. cluster "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/aerospikereceiver/cluster"
  6. )
  7. // NodeGetter is an autogenerated mock type for the nodeGetter type
  8. type NodeGetter struct {
  9. mock.Mock
  10. }
  11. // Close provides a mock function with given fields:
  12. func (_m *NodeGetter) Close() {
  13. _m.Called()
  14. }
  15. // GetNodes provides a mock function with given fields:
  16. func (_m *NodeGetter) GetNodes() []cluster.Node {
  17. ret := _m.Called()
  18. var r0 []cluster.Node
  19. if rf, ok := ret.Get(0).(func() []cluster.Node); ok {
  20. r0 = rf()
  21. } else {
  22. if ret.Get(0) != nil {
  23. r0 = ret.Get(0).([]cluster.Node)
  24. }
  25. }
  26. return r0
  27. }
  28. type mockConstructorTestingTNewNodeGetter interface {
  29. mock.TestingT
  30. Cleanup(func())
  31. }
  32. // NewNodeGetter creates a new instance of NodeGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
  33. func NewNodeGetter(t mockConstructorTestingTNewNodeGetter) *NodeGetter {
  34. mock := &NodeGetter{}
  35. mock.Mock.Test(t)
  36. t.Cleanup(func() { mock.AssertExpectations(t) })
  37. return mock
  38. }