MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / TestLoadConfigFromJson

Function TestLoadConfigFromJson

server/config_test.go:34–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

32}
33
34func TestLoadConfigFromJson(t *testing.T) {
35 c, err := LoadConfigFromFile("../tests/test_config.json")
36 require.Nil(t, err)
37 assertConfig(t, c)
38}
39
40func TestLoadConfigFromEnv(t *testing.T) {
41 assert.Nil(t, os.Setenv("FS_LISTEN_ADDR", ":17300"))

Callers

nothing calls this directly

Calls 2

LoadConfigFromFileFunction · 0.85
assertConfigFunction · 0.85

Tested by

no test coverage detected