aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-12-15 15:50:36 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-12-15 15:50:36 +0100
commit706780000531d0cd98e764c52b85e85ab0929ea5 (patch)
tree27e6cedf85d69d11466b615dacc4a37247903f4c
parent2209489d7b6240e5f6f883d4e62aefc0fb7525fa (diff)
move testdata to packages
-rw-r--r--dht/testdata/freebsd.magnet (renamed from testdata/freebsd.magnet)0
-rw-r--r--meta/testdata/NetBSD-7.0.1-amd64.iso.torrent (renamed from testdata/NetBSD-7.0.1-amd64.iso.torrent)bin29937 -> 29937 bytes
-rw-r--r--meta/testdata/OpenBSD_5.9_amd64_install59.iso-2016-03-29-0449.torrent (renamed from testdata/OpenBSD_5.9_amd64_install59.iso-2016-03-29-0449.torrent)bin18257 -> 18257 bytes
-rw-r--r--meta/testdata/OpenBSD_songs_ogg-2016-03-25-0127.torrent (renamed from testdata/OpenBSD_songs_ogg-2016-03-25-0127.torrent)bin16847 -> 16847 bytes
-rw-r--r--meta/testdata/debian-8.5.0-amd64-netinst.iso.torrent (renamed from testdata/debian-8.5.0-amd64-netinst.iso.torrent)bin20183 -> 20183 bytes
-rw-r--r--meta/testdata/minix_R3.3.0-588a35b.iso.bz2.torrent (renamed from testdata/minix_R3.3.0-588a35b.iso.bz2.torrent)bin46328 -> 46328 bytes
-rw-r--r--meta/testdata/multi.torrent (renamed from testdata/multi.torrent)0
-rw-r--r--meta/torrent_test.go16
8 files changed, 8 insertions, 8 deletions
diff --git a/testdata/freebsd.magnet b/dht/testdata/freebsd.magnet
index 26b8e42..26b8e42 100644
--- a/testdata/freebsd.magnet
+++ b/dht/testdata/freebsd.magnet
diff --git a/testdata/NetBSD-7.0.1-amd64.iso.torrent b/meta/testdata/NetBSD-7.0.1-amd64.iso.torrent
index ca700ba..ca700ba 100644
--- a/testdata/NetBSD-7.0.1-amd64.iso.torrent
+++ b/meta/testdata/NetBSD-7.0.1-amd64.iso.torrent
Binary files differ
diff --git a/testdata/OpenBSD_5.9_amd64_install59.iso-2016-03-29-0449.torrent b/meta/testdata/OpenBSD_5.9_amd64_install59.iso-2016-03-29-0449.torrent
index 186eba3..186eba3 100644
--- a/testdata/OpenBSD_5.9_amd64_install59.iso-2016-03-29-0449.torrent
+++ b/meta/testdata/OpenBSD_5.9_amd64_install59.iso-2016-03-29-0449.torrent
Binary files differ
diff --git a/testdata/OpenBSD_songs_ogg-2016-03-25-0127.torrent b/meta/testdata/OpenBSD_songs_ogg-2016-03-25-0127.torrent
index f8fe7c1..f8fe7c1 100644
--- a/testdata/OpenBSD_songs_ogg-2016-03-25-0127.torrent
+++ b/meta/testdata/OpenBSD_songs_ogg-2016-03-25-0127.torrent
Binary files differ
diff --git a/testdata/debian-8.5.0-amd64-netinst.iso.torrent b/meta/testdata/debian-8.5.0-amd64-netinst.iso.torrent
index 2b797b6..2b797b6 100644
--- a/testdata/debian-8.5.0-amd64-netinst.iso.torrent
+++ b/meta/testdata/debian-8.5.0-amd64-netinst.iso.torrent
Binary files differ
diff --git a/testdata/minix_R3.3.0-588a35b.iso.bz2.torrent b/meta/testdata/minix_R3.3.0-588a35b.iso.bz2.torrent
index fb9d5d8..fb9d5d8 100644
--- a/testdata/minix_R3.3.0-588a35b.iso.bz2.torrent
+++ b/meta/testdata/minix_R3.3.0-588a35b.iso.bz2.torrent
Binary files differ
diff --git a/testdata/multi.torrent b/meta/testdata/multi.torrent
index 4176bb5..4176bb5 100644
--- a/testdata/multi.torrent
+++ b/meta/testdata/multi.torrent
diff --git a/meta/torrent_test.go b/meta/torrent_test.go
index f03142f..710d178 100644
--- a/meta/torrent_test.go
+++ b/meta/torrent_test.go
@@ -3,14 +3,14 @@ package meta
import "testing"
var tors = map[string]string{
- "bsd": "OpenBSD_5.9_amd64_install59.iso-2016-03-29-0449.torrent",
- "ogg": "OpenBSD_songs_ogg-2016-03-25-0127.torrent",
- "deb": "debian-8.5.0-amd64-netinst.iso.torrent",
- "mul": "multi.torrent",
+ "bsd": "testdata/OpenBSD_5.9_amd64_install59.iso-2016-03-29-0449.torrent",
+ "ogg": "testdata/OpenBSD_songs_ogg-2016-03-25-0127.torrent",
+ "deb": "testdata/debian-8.5.0-amd64-netinst.iso.torrent",
+ "mul": "testdata/multi.torrent",
}
func TestHash(t *testing.T) {
- tor, err := New("../testdata/" + tors["bsd"])
+ tor, err := New(tors["bsd"])
if err != nil {
t.Error(err)
}
@@ -20,7 +20,7 @@ func TestHash(t *testing.T) {
}
func TestPieces(t *testing.T) {
- tor, err := New("../testdata/" + tors["mul"])
+ tor, err := New(tors["mul"])
if err != nil {
t.Error(err)
}
@@ -31,7 +31,7 @@ func TestPieces(t *testing.T) {
}
func TestPieces2(t *testing.T) {
- tor, err := New("../testdata/" + tors["mul"])
+ tor, err := New(tors["mul"])
if err != nil {
t.Error(err)
}
@@ -42,7 +42,7 @@ func TestPieces2(t *testing.T) {
func TestReadAt(t *testing.T) {
t.Skip()
- tor, err := New("../testdata/" + tors["bsd"])
+ tor, err := New(tors["bsd"])
if err != nil {
t.Error(err)
}