MCPcopy Create free account
hub / github.com/driangle/taskmd / TestLoadConfig_NoSources

Function TestLoadConfig_NoSources

apps/cli/internal/sync/config_test.go:100–108  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

98}
99
100func TestLoadConfig_NoSources(t *testing.T) {
101 dir := t.TempDir()
102 writeFile(t, filepath.Join(dir, ".taskmd.yaml"), "sync:\n sources: []\n")
103
104 _, err := LoadConfig(dir)
105 if err == nil {
106 t.Fatal("expected error for empty sources")
107 }
108}
109
110func TestLoadConfig_MissingName(t *testing.T) {
111 dir := t.TempDir()

Callers

nothing calls this directly

Calls 2

LoadConfigFunction · 0.85
writeFileFunction · 0.70

Tested by

no test coverage detected