package links import "testing" func TestFetch(t *testing.T) { _, err := fetch("http://example.com", 2) if err != nil { t.Error(err) } }