1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Implemented links on directory listings checking

This commit is contained in:
Sascha L. Teichmann 2022-05-17 01:22:30 +02:00
parent 32be3602b6
commit 3bbd37c441
4 changed files with 92 additions and 9 deletions

View file

@ -23,7 +23,10 @@ const page0 = `<html>
func TestLinksOnPage(t *testing.T) {
links, err := linksOnPage(strings.NewReader(page0))
links, err := linksOnPage(
strings.NewReader(page0),
func(s string) (string, error) { return s, nil },
)
if err != nil {
t.Fatal(err)
}