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

Function Test_LoadConfig

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

Source from the content-addressed store, hash-verified

6)
7
8func Test_LoadConfig(t *testing.T) {
9 config, err := gin.LoadConfig("test_fixtures/config.json")
10
11 expect(t, err, nil)
12 expect(t, config.Port, 5678)
13 expect(t, config.ProxyTo, "http://localhost:3000")
14}
15
16func Test_LoadConfig_WithNonExistantFile(t *testing.T) {
17 _, err := gin.LoadConfig("im/not/here.json")

Callers

nothing calls this directly

Calls 1

expectFunction · 0.85

Tested by

no test coverage detected