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

Function TestLoadConfig_MissingOutputDir

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

Source from the content-addressed store, hash-verified

122}
123
124func TestLoadConfig_MissingOutputDir(t *testing.T) {
125 dir := t.TempDir()
126 content := `sync:
127 sources:
128 - name: github
129`
130 writeFile(t, filepath.Join(dir, ".taskmd.yaml"), content)
131
132 _, err := LoadConfig(dir)
133 if err == nil {
134 t.Fatal("expected error for source without output_dir")
135 }
136}
137
138func writeFile(t *testing.T, path, content string) {
139 t.Helper()

Callers

nothing calls this directly

Calls 2

LoadConfigFunction · 0.85
writeFileFunction · 0.70

Tested by

no test coverage detected