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:
parent
32be3602b6
commit
3bbd37c441
4 changed files with 92 additions and 9 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue