arp.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Code generated by mockery v2.14.0. DO NOT EDIT.
  2. package mocks
  3. import (
  4. context "context"
  5. neighbors "douglasthrift.net/presence/neighbors"
  6. mock "github.com/stretchr/testify/mock"
  7. )
  8. // ARP is an autogenerated mock type for the ARP type
  9. type ARP struct {
  10. mock.Mock
  11. }
  12. // Count provides a mock function with given fields: count
  13. func (_m *ARP) Count(count uint) {
  14. _m.Called(count)
  15. }
  16. // Present provides a mock function with given fields: ctx, ifs, state, addrStates
  17. func (_m *ARP) Present(ctx context.Context, ifs neighbors.Interfaces, state neighbors.State, addrStates neighbors.HardwareAddrStates) error {
  18. ret := _m.Called(ctx, ifs, state, addrStates)
  19. var r0 error
  20. if rf, ok := ret.Get(0).(func(context.Context, neighbors.Interfaces, neighbors.State, neighbors.HardwareAddrStates) error); ok {
  21. r0 = rf(ctx, ifs, state, addrStates)
  22. } else {
  23. r0 = ret.Error(0)
  24. }
  25. return r0
  26. }
  27. type mockConstructorTestingTNewARP interface {
  28. mock.TestingT
  29. Cleanup(func())
  30. }
  31. // NewARP creates a new instance of ARP. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
  32. func NewARP(t mockConstructorTestingTNewARP) *ARP {
  33. mock := &ARP{}
  34. mock.Mock.Test(t)
  35. t.Cleanup(func() { mock.AssertExpectations(t) })
  36. return mock
  37. }