aerospike.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Code generated by mockery v2.13.1. DO NOT EDIT.
  2. package mocks
  3. import mock "github.com/stretchr/testify/mock"
  4. // Aerospike is an autogenerated mock type for the Aerospike type
  5. type Aerospike struct {
  6. mock.Mock
  7. }
  8. // Close provides a mock function with given fields:
  9. func (_m *Aerospike) Close() {
  10. _m.Called()
  11. }
  12. // Info provides a mock function with given fields:
  13. func (_m *Aerospike) Info() map[string]map[string]string {
  14. ret := _m.Called()
  15. var r0 map[string]map[string]string
  16. if rf, ok := ret.Get(0).(func() map[string]map[string]string); ok {
  17. r0 = rf()
  18. } else {
  19. if ret.Get(0) != nil {
  20. r0 = ret.Get(0).(map[string]map[string]string)
  21. }
  22. }
  23. return r0
  24. }
  25. // NamespaceInfo provides a mock function with given fields:
  26. func (_m *Aerospike) NamespaceInfo() map[string]map[string]map[string]string {
  27. ret := _m.Called()
  28. var r0 map[string]map[string]map[string]string
  29. if rf, ok := ret.Get(0).(func() map[string]map[string]map[string]string); ok {
  30. r0 = rf()
  31. } else {
  32. if ret.Get(0) != nil {
  33. r0 = ret.Get(0).(map[string]map[string]map[string]string)
  34. }
  35. }
  36. return r0
  37. }
  38. type mockConstructorTestingTNewAerospike interface {
  39. mock.TestingT
  40. Cleanup(func())
  41. }
  42. // NewAerospike creates a new instance of Aerospike. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
  43. func NewAerospike(t mockConstructorTestingTNewAerospike) *Aerospike {
  44. mock := &Aerospike{}
  45. mock.Mock.Test(t)
  46. t.Cleanup(func() { mock.AssertExpectations(t) })
  47. return mock
  48. }