Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rename testdata dir #145

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading