mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +00:00
test: add debugging info and fix reflect import
This commit is contained in:
@@ -119,7 +119,9 @@ func TestRunRollup(t *testing.T) {
|
|||||||
t.Fatalf("Failed to glob output files: %v", err)
|
t.Fatalf("Failed to glob output files: %v", err)
|
||||||
}
|
}
|
||||||
if len(outputFiles) != 1 {
|
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
|
// Read the content of the output file
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"strings"
|
"strings"
|
||||||
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestIsAllowedURL(t *testing.T) {
|
func TestIsAllowedURL(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user