mirror of
https://github.com/LukeHagar/slinky.git
synced 2025-12-06 04:21:20 +00:00
Update test file paths to use 'testdata' directory for consistency in URL collection tests
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user