(t *testing.T)
| 1312 | } |
| 1313 | |
| 1314 | func TestReloadConfig(t *testing.T) { |
| 1315 | *configFile = "testdata/http.yml" |
| 1316 | if err := reloadConfig(); err != nil { |
| 1317 | t.Fatalf("unexpected error: %s", err) |
| 1318 | } |
| 1319 | |
| 1320 | *configFile = "testdata/foobar.yml" |
| 1321 | if err := reloadConfig(); err == nil { |
| 1322 | t.Fatal("error expected; got nil") |
| 1323 | } |
| 1324 | } |
| 1325 | |
| 1326 | func checkErr(t *testing.T, err error) { |
| 1327 | if err != nil { |
nothing calls this directly
no test coverage detected