diff --git a/audio/format/aac/libfdk-aac_test.go b/audio/format/aac/libfdk-aac_test.go index a0c2214..5517eb0 100644 --- a/audio/format/aac/libfdk-aac_test.go +++ b/audio/format/aac/libfdk-aac_test.go @@ -167,7 +167,7 @@ func TestEncodeAACMP4(t *testing.T) { } } -func TestEncodeAACHE(t *testing.T) { +func TestEncodeAACHEv2(t *testing.T) { t.Parallel() fp, err := os.Open(test.TestSingleSample24) if err != nil { diff --git a/audio/format/guess/flac_decode_test.go b/audio/format/guess/flac_decode_test.go index c0548ab..7d9d498 100644 --- a/audio/format/guess/flac_decode_test.go +++ b/audio/format/guess/flac_decode_test.go @@ -3,8 +3,11 @@ package guess -import "testing" +import ( + "git.gammaspectra.live/S.O.N.G/Kirika/test" + "testing" +) func TestFLACDecode(t *testing.T) { - DoTest(".flac", t) + DoTest(".flac", test.TestSampleLocations, t) } diff --git a/audio/format/guess/guess_test_utils.go b/audio/format/guess/guess_test_utils.go index 0321df1..af1f43f 100644 --- a/audio/format/guess/guess_test_utils.go +++ b/audio/format/guess/guess_test_utils.go @@ -1,14 +1,13 @@ package guess import ( - "git.gammaspectra.live/S.O.N.G/Kirika/test" "os" "path" "testing" ) -func DoTest(ext string, t *testing.T) { - for _, location := range test.TestSampleLocations { +func DoTest(ext string, locations []string, t *testing.T) { + for _, location := range locations { entries, err := os.ReadDir(location) if err != nil { t.Error(err) diff --git a/audio/format/guess/mp3_decode_test.go b/audio/format/guess/mp3_decode_test.go index 1d5d9b0..3e214f5 100644 --- a/audio/format/guess/mp3_decode_test.go +++ b/audio/format/guess/mp3_decode_test.go @@ -3,8 +3,11 @@ package guess -import "testing" +import ( + "git.gammaspectra.live/S.O.N.G/Kirika/test" + "testing" +) func TestMP3Decode(t *testing.T) { - DoTest(".mp3", t) + DoTest(".mp3", test.TestSampleLocations, t) } diff --git a/audio/format/guess/opus_decode_test.go b/audio/format/guess/opus_decode_test.go index eb69eee..108e90b 100644 --- a/audio/format/guess/opus_decode_test.go +++ b/audio/format/guess/opus_decode_test.go @@ -3,8 +3,11 @@ package guess -import "testing" +import ( + "git.gammaspectra.live/S.O.N.G/Kirika/test" + "testing" +) func TestOpusDecode(t *testing.T) { - DoTest(".opus", t) + DoTest(".opus", test.TestSampleLocations, t) } diff --git a/audio/format/guess/tta_decode_test.go b/audio/format/guess/tta_decode_test.go index c89fab8..30309c1 100644 --- a/audio/format/guess/tta_decode_test.go +++ b/audio/format/guess/tta_decode_test.go @@ -3,8 +3,11 @@ package guess -import "testing" +import ( + "git.gammaspectra.live/S.O.N.G/Kirika/test" + "testing" +) func TestTTADecode(t *testing.T) { - DoTest(".tta", t) + DoTest(".tta", test.TestSampleLocations, t) } diff --git a/audio/format/guess/vorbis_decode_test.go b/audio/format/guess/vorbis_decode_test.go index 81d8eea..9206181 100644 --- a/audio/format/guess/vorbis_decode_test.go +++ b/audio/format/guess/vorbis_decode_test.go @@ -3,8 +3,11 @@ package guess -import "testing" +import ( + "git.gammaspectra.live/S.O.N.G/Kirika/test" + "testing" +) func TestVorbisDecode(t *testing.T) { - DoTest(".vorbis", t) + DoTest(".vorbis", test.TestSampleLocations, t) }