chore: tweak plugin

This commit is contained in:
Steven
2024-08-20 23:17:24 +08:00
parent c4b26cac38
commit 3df3405ad5
10 changed files with 181 additions and 584 deletions

View File

@@ -0,0 +1,19 @@
package httpgetter
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestGetHTMLMeta(t *testing.T) {
tests := []struct {
urlStr string
htmlMeta HTMLMeta
}{}
for _, test := range tests {
metadata, err := GetHTMLMeta(test.urlStr)
require.NoError(t, err)
require.Equal(t, test.htmlMeta, *metadata)
}
}