(t *testing.T)
| 139 | } |
| 140 | |
| 141 | func TestMigrateFromJSON_NoMdFile(t *testing.T) { |
| 142 | tmpDir := t.TempDir() |
| 143 | |
| 144 | jsonContent := `{"project": "Test", "userStories": [{"id": "US-001", "passes": true, "priority": 1}]}` |
| 145 | if err := os.WriteFile(filepath.Join(tmpDir, "prd.json"), []byte(jsonContent), 0644); err != nil { |
| 146 | t.Fatalf("failed to write: %v", err) |
| 147 | } |
| 148 | |
| 149 | err := MigrateFromJSON(tmpDir) |
| 150 | if err == nil { |
| 151 | t.Error("expected error when prd.md doesn't exist") |
| 152 | } |
| 153 | } |
nothing calls this directly
no test coverage detected