mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-06 20:10:11 +02:00
hotfix(slickvpn): remove unused code
This commit is contained in:
@@ -1,26 +0,0 @@
|
|||||||
package updater
|
|
||||||
|
|
||||||
import (
|
|
||||||
"os"
|
|
||||||
"strings"
|
|
||||||
"testing"
|
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
|
||||||
"golang.org/x/net/html"
|
|
||||||
)
|
|
||||||
|
|
||||||
func parseTestHTML(t *testing.T, htmlString string) *html.Node {
|
|
||||||
t.Helper()
|
|
||||||
rootNode, err := html.Parse(strings.NewReader(htmlString))
|
|
||||||
require.NoError(t, err)
|
|
||||||
return rootNode
|
|
||||||
}
|
|
||||||
|
|
||||||
func parseTestDataIndexHTML(t *testing.T) *html.Node {
|
|
||||||
t.Helper()
|
|
||||||
|
|
||||||
data, err := os.ReadFile("testdata/index.html")
|
|
||||||
require.NoError(t, err)
|
|
||||||
|
|
||||||
return parseTestHTML(t, string(data))
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user