From f470f04d8f6b6e6f163b31a2c030643ece8b470f Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 23 Feb 2016 21:31:15 +1100 Subject: [PATCH] bencode: Use the testdata convention in tests --- bencode/both_test.go | 6 +++--- ...archlinux-2011.08.19-netinstall-i686.iso.torrent | Bin bencode/{_testdata => testdata}/continuum.torrent | Bin 3 files changed, 3 insertions(+), 3 deletions(-) rename bencode/{_testdata => testdata}/archlinux-2011.08.19-netinstall-i686.iso.torrent (100%) rename bencode/{_testdata => testdata}/continuum.torrent (100%) diff --git a/bencode/both_test.go b/bencode/both_test.go index a000f35b..7ee1454e 100644 --- a/bencode/both_test.go +++ b/bencode/both_test.go @@ -33,8 +33,8 @@ func test_file_interface(t *testing.T, filename string) { } func TestBothInterface(t *testing.T) { - test_file_interface(t, "_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent") - test_file_interface(t, "_testdata/continuum.torrent") + test_file_interface(t, "testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent") + test_file_interface(t, "testdata/continuum.torrent") } type torrent_file struct { @@ -76,5 +76,5 @@ func test_file(t *testing.T, filename string) { } func TestBoth(t *testing.T) { - test_file(t, "_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent") + test_file(t, "testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent") } diff --git a/bencode/_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent b/bencode/testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent similarity index 100% rename from bencode/_testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent rename to bencode/testdata/archlinux-2011.08.19-netinstall-i686.iso.torrent diff --git a/bencode/_testdata/continuum.torrent b/bencode/testdata/continuum.torrent similarity index 100% rename from bencode/_testdata/continuum.torrent rename to bencode/testdata/continuum.torrent -- 2.48.1