]> Sergey Matveev's repositories - btrtrc.git/commitdiff
metainfo tests: Fix some naming conventions
authorMatt Joiner <anacrolix@gmail.com>
Tue, 23 Feb 2016 10:50:07 +0000 (21:50 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 23 Feb 2016 10:50:07 +0000 (21:50 +1100)
metainfo/metainfo_test.go
metainfo/testdata/23516C72685E8DB0C8F15553382A927F185C4F01.torrent [moved from metainfo/_testdata/23516C72685E8DB0C8F15553382A927F185C4F01.torrent with 100% similarity]
metainfo/testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent [moved from metainfo/_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent with 100% similarity]
metainfo/testdata/continuum.torrent [moved from metainfo/_testdata/continuum.torrent with 100% similarity]
metainfo/testdata/trackerless.torrent [moved from metainfo/_testdata/trackerless.torrent with 100% similarity]

index 9f78840ac9230a683809e60980c5c6e44f030618..ef0e1e1b116b7e1522d3b89d1e48267b1856001c 100644 (file)
@@ -13,7 +13,7 @@ import (
        "github.com/anacrolix/torrent/bencode"
 )
 
-func test_file(t *testing.T, filename string) {
+func testFile(t *testing.T, filename string) {
        mi, err := LoadFromFile(filename)
        if err != nil {
                t.Fatal(err)
@@ -45,10 +45,10 @@ func test_file(t *testing.T, filename string) {
 }
 
 func TestFile(t *testing.T) {
-       test_file(t, "_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent")
-       test_file(t, "_testdata/continuum.torrent")
-       test_file(t, "_testdata/23516C72685E8DB0C8F15553382A927F185C4F01.torrent")
-       test_file(t, "_testdata/trackerless.torrent")
+       testFile(t, "testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent")
+       testFile(t, "testdata/continuum.torrent")
+       testFile(t, "testdata/23516C72685E8DB0C8F15553382A927F185C4F01.torrent")
+       testFile(t, "testdata/trackerless.torrent")
 }
 
 // Ensure that the correct number of pieces are generated when hashing files.