MCPcopy Create free account
hub / github.com/JordanCoin/codemap / TestLoad_MissingFile

Function TestLoad_MissingFile

config/config_test.go:12–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestLoad_MissingFile(t *testing.T) {
13 cfg := Load("/nonexistent/path")
14 if len(cfg.Only) != 0 || len(cfg.Exclude) != 0 || cfg.Depth != 0 {
15 t.Errorf("expected zero-value config for missing file, got %+v", cfg)
16 }
17}
18
19func TestLoad_ValidConfig(t *testing.T) {
20 dir := t.TempDir()

Callers

nothing calls this directly

Calls 1

LoadFunction · 0.85

Tested by

no test coverage detected