From 1a197f171413d85b04b2d48853acb594b345dbc5 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 12 Jun 2016 06:11:33 +0200 Subject: rename meta module --- bencode/bencode_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bencode') diff --git a/bencode/bencode_test.go b/bencode/bencode_test.go index 51c5bae..8f3c43f 100644 --- a/bencode/bencode_test.go +++ b/bencode/bencode_test.go @@ -6,17 +6,17 @@ import ( "testing" "time" - "dim13.org/btr/torrent" + "dim13.org/btr/meta" ) func TestMarshal(t *testing.T) { - v := torrent.Torrent{ + v := meta.Torrent{ Announce: "test", AnnounceList: []string{"test1", "test2", "test3"}, CreationDate: time.Now(), - Info: torrent.Info{ + Info: meta.Info{ Length: 1000, - Files: []torrent.File{ + Files: []meta.File{ {Path: []string{"A"}}, {Path: []string{"B"}}, }, @@ -51,7 +51,7 @@ func TestUnmarshal(t *testing.T) { t.Error(err) } for _, file := range files { - var tor torrent.Torrent + var tor meta.Torrent body, err := ioutil.ReadFile(file) if err != nil { t.Error(err) -- cgit v1.2.3