all repos — honk @ 03280d3bf4b7bf6fa09f5a681d2e30b56fde8cd0

my fork of honk

hoot_test.go (view raw)

 1package main
 2
 3import (
 4	"fmt"
 5	"log"
 6	"os"
 7	"testing"
 8)
 9
10func TestHooterize(t *testing.T) {
11	dlog = log.Default()
12	fd, err := os.Open("lasthoot.html")
13	if err != nil {
14		return
15	}
16	seen := make(map[string]bool)
17	hoots := hootextractor(fd, "lasthoot.html", seen)
18	fmt.Printf("hoots: %s\n", hoots)
19}