(url string)
| 64 | } |
| 65 | |
| 66 | func doGet(url string) (int, string, error) { |
| 67 | resp, err := http.Get(url) |
| 68 | if err != nil { |
| 69 | return 0, "", err |
| 70 | } |
| 71 | |
| 72 | defer resp.Body.Close() |
| 73 | body, err := io.ReadAll(resp.Body) |
| 74 | if err != nil { |
| 75 | return resp.StatusCode, "", err |
| 76 | } |
| 77 | return resp.StatusCode, string(body), nil |
| 78 | } |
| 79 | |
| 80 | func TestStartConfig_Start(t *testing.T) { |
| 81 | e := New() |
no test coverage detected
searching dependent graphs…