Fix moc interface

This commit is contained in:
Zoltan Papp 2024-07-09 10:22:38 +02:00
parent d4ff55e6fe
commit 1065e0a6c5

View File

@ -28,14 +28,16 @@ type MockWGIface struct {
GetInterfaceGUIDStringFunc func() (string, error) GetInterfaceGUIDStringFunc func() (string, error)
} }
func (m *MockWGIface) GetInterfaceGUIDString() (string, error) {
return m.GetInterfaceGUIDStringFunc()
}
func (m *MockWGIface) Create() error { func (m *MockWGIface) Create() error {
//TODO implement me return m.Create()
panic("implement me")
} }
func (m *MockWGIface) CreateOnAndroid(routeRange []string, ip string, domains []string) error { func (m *MockWGIface) CreateOnAndroid(routeRange []string, ip string, domains []string) error {
//TODO implement me return m.CreateOnAndroid(routeRange, ip, domains)
panic("implement me")
} }
func (m *MockWGIface) IsUserspaceBind() bool { func (m *MockWGIface) IsUserspaceBind() bool {