Update test file paths to use 'testdata' directory for consistency in URL collection tests

This commit is contained in:
Luke Hagar
2025-09-11 17:01:01 +00:00
parent e57f8c0d73
commit 56bd74b49d
2 changed files with 2 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func TestCollectURLs_FromTestFiles(t *testing.T) {
root := filepath.Join("..", "..", "test files")
root := filepath.Join("..", "..", "testdata")
urls, err := CollectURLs(root, []string{"**/*"})
if err != nil {
@@ -19,7 +19,6 @@ func TestCollectURLs_FromTestFiles(t *testing.T) {
"https://example.com",
"https://en.wikipedia.org/wiki/Main_Page",
"http://example.com:8080",
"http://example..com", // appears in multiple files
"https://this-domain-does-not-exist-123456789.com",
}
for _, u := range mustContain {

View File

@@ -6,7 +6,7 @@ import (
)
func TestCollectURLs_FromCodeFiles(t *testing.T) {
root := filepath.Join("..", "..", "test files")
root := filepath.Join("..", "..", "testdata")
urls, err := CollectURLs(root, []string{"**/*"})
if err != nil {
t.Fatalf("CollectURLs error: %v", err)