MCPcopy Create free account
hub / github.com/astercloud/aster / TestNewLoader

Function TestNewLoader

pkg/config/loader_test.go:11–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestNewLoader(t *testing.T) {
12 loader := NewLoader()
13 if loader == nil {
14 t.Fatal("NewLoader returned nil")
15 }
16
17 // Default should have expandEnv enabled
18 if !loader.expandEnv {
19 t.Error("expected expandEnv to be true by default")
20 }
21}
22
23func TestNewLoaderWithOptions(t *testing.T) {
24 loader := NewLoader(

Callers

nothing calls this directly

Calls 2

NewLoaderFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected