From 1863953dcdcab39e1c0d0f5b5e49014279f0e5bd Mon Sep 17 00:00:00 2001 From: Akeem Jenkins Date: Fri, 10 Jul 2026 08:15:05 -0600 Subject: [PATCH] fix: remove duplicate testBundle helper breaking CI on main PR #10 merged a second identical copy of the testBundle helper into internal/validate/validate_test.go, so go vet and golangci-lint fail with a redeclaration error on every push to main. Keep the single copy under the helpers section. Co-Authored-By: Claude Fable 5 --- internal/validate/validate_test.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/internal/validate/validate_test.go b/internal/validate/validate_test.go index 5d8229b..4373f8d 100644 --- a/internal/validate/validate_test.go +++ b/internal/validate/validate_test.go @@ -128,25 +128,6 @@ func TestValidate_FrontmatterLinkResolves(t *testing.T) { } } -func testBundle(t *testing.T, files map[string]string) *bundle.Bundle { - t.Helper() - dir := t.TempDir() - for path, content := range files { - full := filepath.Join(dir, path) - if err := os.MkdirAll(filepath.Dir(full), 0755); err != nil { - t.Fatalf("mkdir: %v", err) - } - if err := os.WriteFile(full, []byte(content), 0644); err != nil { - t.Fatalf("write: %v", err) - } - } - b, err := bundle.Load(dir) - if err != nil { - t.Fatalf("Load: %v", err) - } - return b -} - func TestNormalizePath(t *testing.T) { tests := []struct { in, want string