ar_ping.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Code generated by mockery v2.14.0. DO NOT EDIT.
  2. package mocks
  3. import (
  4. context "context"
  5. mock "github.com/stretchr/testify/mock"
  6. )
  7. // ARPing is an autogenerated mock type for the ARPing type
  8. type ARPing struct {
  9. mock.Mock
  10. }
  11. // Count provides a mock function with given fields: count
  12. func (_m *ARPing) Count(count uint) {
  13. _m.Called(count)
  14. }
  15. // Ping provides a mock function with given fields: ctx, ifi, hw, ip
  16. func (_m *ARPing) Ping(ctx context.Context, ifi string, hw string, ip string) (bool, error) {
  17. ret := _m.Called(ctx, ifi, hw, ip)
  18. var r0 bool
  19. if rf, ok := ret.Get(0).(func(context.Context, string, string, string) bool); ok {
  20. r0 = rf(ctx, ifi, hw, ip)
  21. } else {
  22. r0 = ret.Get(0).(bool)
  23. }
  24. var r1 error
  25. if rf, ok := ret.Get(1).(func(context.Context, string, string, string) error); ok {
  26. r1 = rf(ctx, ifi, hw, ip)
  27. } else {
  28. r1 = ret.Error(1)
  29. }
  30. return r0, r1
  31. }
  32. type mockConstructorTestingTNewARPing interface {
  33. mock.TestingT
  34. Cleanup(func())
  35. }
  36. // NewARPing creates a new instance of ARPing. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
  37. func NewARPing(t mockConstructorTestingTNewARPing) *ARPing {
  38. mock := &ARPing{}
  39. mock.Mock.Test(t)
  40. t.Cleanup(func() { mock.AssertExpectations(t) })
  41. return mock
  42. }