Skip to content

Commit

Permalink
Merge pull request #145 from nlnwa/refactor/rename-testdata-dir
Browse files Browse the repository at this point in the history
refactor: rename `testdata` dir
  • Loading branch information
trym-b authored Apr 30, 2024
2 parents ae35bec + 2e3e700 commit c57900b
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.warc.gz filter=lfs diff=lfs merge=lfs -text
test-data/nedlib/nb-image/b863a630196bce1a15ca86b40f34a2d5 filter=lfs diff=lfs merge=lfs -text
test-data/nedlib/nb-image/e4a2d28bdf4c38b8f6f291f7c8c958d5 filter=lfs diff=lfs merge=lfs -text
testdata/nedlib/nb-image/b863a630196bce1a15ca86b40f34a2d5 filter=lfs diff=lfs merge=lfs -text
testdata/nedlib/nb-image/e4a2d28bdf4c38b8f6f291f7c8c958d5 filter=lfs diff=lfs merge=lfs -text
*.meta filter=lfs diff=lfs merge=lfs -text
2 changes: 1 addition & 1 deletion cmd/convert/nedlib/nedlib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (fileWalker *walker) dummyWalkFunction(_ afero.Fs, path string) filewalker.
}

func TestConvert(t *testing.T) {
testDataDir := filepath.Join("..", "..", "test-data")
testDataDir := filepath.Join("..", "..", "testdata")
nedlibDir := filepath.Join(testDataDir, "nedlib", "nb-image")

fileWalker := walker{}
Expand Down
4 changes: 2 additions & 2 deletions cmd/ls/ls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func TestConfigReadFileWithError(t *testing.T) {
testDataDir := filepath.Join("..", "..", "test-data")
testDataDir := filepath.Join("..", "..", "testdata")
warcWithErrors := filepath.Join(testDataDir, "samsung-with-error", "rec-33318048d933-20240317162652059-0.warc.gz")
config := &conf{}
config.filter = filter.NewFromViper()
Expand All @@ -24,7 +24,7 @@ func BenchmarkReadFileWithError(b *testing.B) {
// `github-action-benchmark` is unable to handle some of the output in the
// benchmark result files.
os.Stdout = nil
testDataDir := filepath.Join("..", "..", "test-data")
testDataDir := filepath.Join("..", "..", "testdata")
warcWithErrors := filepath.Join(testDataDir, "samsung-with-error", "rec-33318048d933-20240317162652059-0.warc.gz")
config := &conf{}
config.filter = filter.NewFromViper()
Expand Down
2 changes: 1 addition & 1 deletion cmd/validate/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func TestValidateSamsungFileWithError(t *testing.T) {
testDataDir := filepath.Join("..", "..", "test-data")
testDataDir := filepath.Join("..", "..", "testdata")
warcWithErrors := filepath.Join(testDataDir, "samsung-with-error", "rec-33318048d933-20240317162652059-0.warc.gz")
defer func() {
if r := recover(); r == nil {
Expand Down
File renamed without changes.

0 comments on commit c57900b

Please sign in to comment.