Resolve merge conflicts: use importer package

This commit is contained in:
Steve Yegge
2025-10-27 22:44:40 -07:00
8 changed files with 513 additions and 92 deletions

View File

@@ -2,6 +2,9 @@ package main
import (
"testing"
"github.com/steveyegge/beads/internal/importer"
"github.com/steveyegge/beads/internal/utils"
)
func TestIsNumeric(t *testing.T) {
@@ -45,9 +48,9 @@ func TestExtractPrefix(t *testing.T) {
}
for _, tt := range tests {
result := extractPrefix(tt.input)
result := utils.ExtractIssuePrefix(tt.input)
if result != tt.expected {
t.Errorf("extractPrefix(%q) = %q, want %q", tt.input, result, tt.expected)
t.Errorf("ExtractIssuePrefix(%q) = %q, want %q", tt.input, result, tt.expected)
}
}
}
@@ -59,7 +62,7 @@ func TestGetPrefixList(t *testing.T) {
"test": 1,
}
result := getPrefixList(prefixMap)
result := importer.GetPrefixList(prefixMap)
// Should have 3 entries
if len(result) != 3 {