MCPcopy Create free account
hub / github.com/DoNewsCode/core / TestNewEnvFromConf

Function TestNewEnvFromConf

config/env_test.go:32–42  ·  view source on GitHub ↗
(t *gotesting.T)

Source from the content-addressed store, hash-verified

30}
31
32func TestNewEnvFromConf(t *gotesting.T) {
33 t.Parallel()
34 for _, c := range cases {
35 t.Run(c.name, func(t *gotesting.T) {
36 env := NewEnvFromConf(MapAdapter(map[string]interface{}{
37 "env": c.env,
38 }))
39 assert.Equal(t, c.want, env)
40 })
41 }
42}

Callers

nothing calls this directly

Calls 3

NewEnvFromConfFunction · 0.85
MapAdapterTypeAlias · 0.85
RunMethod · 0.45

Tested by

no test coverage detected