|
@@ -0,0 +1,55 @@
|
|
|
+
|
|
|
+
|
|
|
+package mocks
|
|
|
+
|
|
|
+import (
|
|
|
+ context "context"
|
|
|
+
|
|
|
+ mock "github.com/stretchr/testify/mock"
|
|
|
+)
|
|
|
+
|
|
|
+
|
|
|
+type ARPing struct {
|
|
|
+ mock.Mock
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+func (_m *ARPing) Count(count uint) {
|
|
|
+ _m.Called(count)
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+func (_m *ARPing) Ping(ctx context.Context, ifi string, hw string, ip string) (bool, error) {
|
|
|
+ ret := _m.Called(ctx, ifi, hw, ip)
|
|
|
+
|
|
|
+ var r0 bool
|
|
|
+ if rf, ok := ret.Get(0).(func(context.Context, string, string, string) bool); ok {
|
|
|
+ r0 = rf(ctx, ifi, hw, ip)
|
|
|
+ } else {
|
|
|
+ r0 = ret.Get(0).(bool)
|
|
|
+ }
|
|
|
+
|
|
|
+ var r1 error
|
|
|
+ if rf, ok := ret.Get(1).(func(context.Context, string, string, string) error); ok {
|
|
|
+ r1 = rf(ctx, ifi, hw, ip)
|
|
|
+ } else {
|
|
|
+ r1 = ret.Error(1)
|
|
|
+ }
|
|
|
+
|
|
|
+ return r0, r1
|
|
|
+}
|
|
|
+
|
|
|
+type mockConstructorTestingTNewARPing interface {
|
|
|
+ mock.TestingT
|
|
|
+ Cleanup(func())
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+func NewARPing(t mockConstructorTestingTNewARPing) *ARPing {
|
|
|
+ mock := &ARPing{}
|
|
|
+ mock.Mock.Test(t)
|
|
|
+
|
|
|
+ t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
+
|
|
|
+ return mock
|
|
|
+}
|