(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestLoadURL(t *testing.T) { |
| 73 | ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 74 | fmt.Fprint(w, htmlSample) |
| 75 | })) |
| 76 | defer ts.Close() |
| 77 | |
| 78 | _, err := LoadURL(ts.URL) |
| 79 | if err != nil { |
| 80 | t.Fatal(err) |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | func TestLoadURLWithGzipResponse(t *testing.T) { |
| 85 | ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…