(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func 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 | |
| 138 | func writeFile(t *testing.T, path, content string) { |
| 139 | t.Helper() |
nothing calls this directly
no test coverage detected