aboutsummaryrefslogtreecommitdiff
path: root/bencode
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-07-03 16:42:40 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-07-03 16:42:40 +0200
commit7ac138c434e5d916bad4ff1f9fa03c9f2f74a897 (patch)
tree657ae3328f7803683a59233f7214850314134d7d /bencode
parent14b224358802f59ffac25dea030869791e31fff7 (diff)
Less magic
Diffstat (limited to 'bencode')
-rw-r--r--bencode/bencode_test.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/bencode/bencode_test.go b/bencode/bencode_test.go
index 8ef71fa..5965afa 100644
--- a/bencode/bencode_test.go
+++ b/bencode/bencode_test.go
@@ -1,14 +1,8 @@
package bencode
-import (
- "encoding/hex"
- "io/ioutil"
- "testing"
- "time"
-
- "dim13.org/btget/meta"
-)
+import "testing"
+/*
func TestMarshal(t *testing.T) {
v := meta.Torrent{
Announce: "test",
@@ -32,6 +26,7 @@ func TestMarshal(t *testing.T) {
}
t.Logf("%q\n", string(out))
}
+*/
func TestParseString(t *testing.T) {
in := "4:testZZZ"
@@ -49,6 +44,7 @@ func TestParseInt(t *testing.T) {
}
}
+/*
var testCase = []struct {
Torrent string
InfoHash string
@@ -103,6 +99,7 @@ func TestUnmarshalPartial(t *testing.T) {
t.Log(tor.Announce)
}
}
+*/
func TestBoolUnmarshal(t *testing.T) {
var b struct{ A bool }