(t *testing.T)
| 122 | } |
| 123 | |
| 124 | func TestMigrateFromJSON_NoJsonFile(t *testing.T) { |
| 125 | tmpDir := t.TempDir() |
| 126 | |
| 127 | mdContent := `# Test |
| 128 | ### US-001: First |
| 129 | - [ ] A |
| 130 | ` |
| 131 | if err := os.WriteFile(filepath.Join(tmpDir, "prd.md"), []byte(mdContent), 0644); err != nil { |
| 132 | t.Fatalf("failed to write: %v", err) |
| 133 | } |
| 134 | |
| 135 | err := MigrateFromJSON(tmpDir) |
| 136 | if err == nil { |
| 137 | t.Error("expected error when prd.json doesn't exist") |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | func TestMigrateFromJSON_NoMdFile(t *testing.T) { |
| 142 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected