test: add debugging info and fix reflect import

This commit is contained in:
Arik Jones (aider)
2024-09-21 15:57:05 -05:00
parent 73116e8d82
commit 2fd411ce65
2 changed files with 4 additions and 1 deletions

View File

@@ -119,7 +119,9 @@ func TestRunRollup(t *testing.T) {
t.Fatalf("Failed to glob output files: %v", err)
}
if len(outputFiles) != 1 {
t.Fatalf("Expected 1 output file, got %d", len(outputFiles))
// List all files in the temp directory for debugging
files, _ := filepath.Glob(filepath.Join(tempDir, "*"))
t.Fatalf("Expected 1 output file, got %d. Files in directory: %v", len(outputFiles), files)
}
// Read the content of the output file

View File

@@ -5,6 +5,7 @@ import (
"net/http"
"net/http/httptest"
"strings"
"reflect"
)
func TestIsAllowedURL(t *testing.T) {