MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / TestReloadConfig

Function TestReloadConfig

main_test.go:1314–1324  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1312}
1313
1314func 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
1326func checkErr(t *testing.T, err error) {
1327 if err != nil {

Callers

nothing calls this directly

Calls 1

reloadConfigFunction · 0.85

Tested by

no test coverage detected