From 7ed81fa708a3454d45e9ff9071470d9e6ae1e0e6 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 23 Feb 2016 21:50:07 +1100 Subject: [PATCH] metainfo tests: Fix some naming conventions --- metainfo/metainfo_test.go | 10 +++++----- ...23516C72685E8DB0C8F15553382A927F185C4F01.torrent | Bin ...archlinux-2011.08.19-netinstall-i686.iso.torrent | Bin metainfo/{_testdata => testdata}/continuum.torrent | Bin .../{_testdata => testdata}/trackerless.torrent | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename metainfo/{_testdata => testdata}/23516C72685E8DB0C8F15553382A927F185C4F01.torrent (100%) rename metainfo/{_testdata => testdata}/archlinux-2011.08.19-netinstall-i686.iso.torrent (100%) rename metainfo/{_testdata => testdata}/continuum.torrent (100%) rename metainfo/{_testdata => testdata}/trackerless.torrent (100%) diff --git a/metainfo/metainfo_test.go b/metainfo/metainfo_test.go index 9f78840a..ef0e1e1b 100644 --- a/metainfo/metainfo_test.go +++ b/metainfo/metainfo_test.go @@ -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. diff --git a/metainfo/_testdata/23516C72685E8DB0C8F15553382A927F185C4F01.torrent b/metainfo/testdata/23516C72685E8DB0C8F15553382A927F185C4F01.torrent similarity index 100% rename from metainfo/_testdata/23516C72685E8DB0C8F15553382A927F185C4F01.torrent rename to metainfo/testdata/23516C72685E8DB0C8F15553382A927F185C4F01.torrent diff --git a/metainfo/_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent b/metainfo/testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent similarity index 100% rename from metainfo/_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent rename to metainfo/testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent diff --git a/metainfo/_testdata/continuum.torrent b/metainfo/testdata/continuum.torrent similarity index 100% rename from metainfo/_testdata/continuum.torrent rename to metainfo/testdata/continuum.torrent diff --git a/metainfo/_testdata/trackerless.torrent b/metainfo/testdata/trackerless.torrent similarity index 100% rename from metainfo/_testdata/trackerless.torrent rename to metainfo/testdata/trackerless.torrent