aboutsummaryrefslogtreecommitdiff
path: root/meta/torrent_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'meta/torrent_test.go')
-rw-r--r--meta/torrent_test.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/torrent_test.go b/meta/torrent_test.go
index 4965b87..5f304d5 100644
--- a/meta/torrent_test.go
+++ b/meta/torrent_test.go
@@ -1,20 +1,21 @@
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",
}
+/*
func TestPieces(t *testing.T) {
- tor, err := New("../examples/" + tors["ogg"])
+ tor, err := Open("../examples/" + tors["mul"])
if err != nil {
t.Error(err)
}
for i := 0; i < tor.Info.NPieces(); i++ {
- n, off, span := tor.Info.FileOffset(i)
- t.Log(n, off, span)
+ n, off := tor.Info.FileOffset(i)
+ t.Log(n, off)
}
}
+*/