MCPcopy Index your code
hub / github.com/codegangsta/gin / Test_LoadConfig_WithMalformedFile

Function Test_LoadConfig_WithMalformedFile

lib/config_test.go:23–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func Test_LoadConfig_WithMalformedFile(t *testing.T) {
24 _, err := gin.LoadConfig("test_fixtures/bad_config.json")
25
26 refute(t, err, nil)
27 expect(t, err.Error(), "Unable to parse configuration file test_fixtures/bad_config.json")
28}

Callers

nothing calls this directly

Calls 2

refuteFunction · 0.85
expectFunction · 0.85

Tested by

no test coverage detected