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

Function Test_LoadConfig_WithNonExistantFile

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

Source from the content-addressed store, hash-verified

14}
15
16func Test_LoadConfig_WithNonExistantFile(t *testing.T) {
17 _, err := gin.LoadConfig("im/not/here.json")
18
19 refute(t, err, nil)
20 expect(t, err.Error(), "Unable to read configuration file im/not/here.json")
21}
22
23func Test_LoadConfig_WithMalformedFile(t *testing.T) {
24 _, err := gin.LoadConfig("test_fixtures/bad_config.json")

Callers

nothing calls this directly

Calls 2

refuteFunction · 0.85
expectFunction · 0.85

Tested by

no test coverage detected