createConfigFile creates a .taskmd.yaml file with the given content
(t *testing.T, dir, content string)
| 30 | |
| 31 | // createConfigFile creates a .taskmd.yaml file with the given content |
| 32 | func createConfigFile(t *testing.T, dir, content string) string { |
| 33 | t.Helper() |
| 34 | configPath := filepath.Join(dir, ".taskmd.yaml") |
| 35 | if err := os.WriteFile(configPath, []byte(content), 0644); err != nil { |
| 36 | t.Fatalf("failed to create config file: %v", err) |
| 37 | } |
| 38 | return configPath |
| 39 | } |
| 40 | |
| 41 | func TestConfigFile_ProjectLevel(t *testing.T) { |
| 42 | resetViper() |
no outgoing calls
no test coverage detected