honk/hoot_test.go

20 lines
298 B
Go
Raw Permalink Normal View History

2019-10-31 05:00:31 +01:00
package main
import (
"fmt"
2022-07-03 22:07:23 +02:00
"log"
2019-10-31 05:00:31 +01:00
"os"
"testing"
)
func TestHooterize(t *testing.T) {
2022-07-03 22:07:23 +02:00
dlog = log.Default()
2019-10-31 05:00:31 +01:00
fd, err := os.Open("lasthoot.html")
if err != nil {
return
}
seen := make(map[string]bool)
hoots := hootextractor(fd, "lasthoot.html", seen)
fmt.Printf("hoots: %s\n", hoots)
}