2023-05-29 16:00:18 +02:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: github.com/netbirdio/netbird/client/internal/acl (interfaces: IFaceMapper)
|
|
|
|
|
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
|
|
|
|
|
|
|
import (
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
iface "github.com/netbirdio/netbird/iface"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockIFaceMapper is a mock of IFaceMapper interface.
|
|
|
|
type MockIFaceMapper struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockIFaceMapperMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockIFaceMapperMockRecorder is the mock recorder for MockIFaceMapper.
|
|
|
|
type MockIFaceMapperMockRecorder struct {
|
|
|
|
mock *MockIFaceMapper
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockIFaceMapper creates a new mock instance.
|
|
|
|
func NewMockIFaceMapper(ctrl *gomock.Controller) *MockIFaceMapper {
|
|
|
|
mock := &MockIFaceMapper{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockIFaceMapperMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
|
|
func (m *MockIFaceMapper) EXPECT() *MockIFaceMapperMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2023-06-07 15:24:27 +02:00
|
|
|
// Address mocks base method.
|
|
|
|
func (m *MockIFaceMapper) Address() iface.WGAddress {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Address")
|
|
|
|
ret0, _ := ret[0].(iface.WGAddress)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Address indicates an expected call of Address.
|
|
|
|
func (mr *MockIFaceMapperMockRecorder) Address() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Address", reflect.TypeOf((*MockIFaceMapper)(nil).Address))
|
|
|
|
}
|
|
|
|
|
2023-05-29 16:00:18 +02:00
|
|
|
// IsUserspaceBind mocks base method.
|
|
|
|
func (m *MockIFaceMapper) IsUserspaceBind() bool {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "IsUserspaceBind")
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// IsUserspaceBind indicates an expected call of IsUserspaceBind.
|
|
|
|
func (mr *MockIFaceMapperMockRecorder) IsUserspaceBind() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsUserspaceBind", reflect.TypeOf((*MockIFaceMapper)(nil).IsUserspaceBind))
|
|
|
|
}
|
|
|
|
|
|
|
|
// Name mocks base method.
|
|
|
|
func (m *MockIFaceMapper) Name() string {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Name")
|
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Name indicates an expected call of Name.
|
|
|
|
func (mr *MockIFaceMapperMockRecorder) Name() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockIFaceMapper)(nil).Name))
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFiltering mocks base method.
|
|
|
|
func (m *MockIFaceMapper) SetFiltering(arg0 iface.PacketFilter) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SetFiltering", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetFiltering indicates an expected call of SetFiltering.
|
|
|
|
func (mr *MockIFaceMapperMockRecorder) SetFiltering(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFiltering", reflect.TypeOf((*MockIFaceMapper)(nil).SetFiltering), arg0)
|
|
|
|
}
|