rm unused tests
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Brian Tiger Chow committed
Nov 13, 2014 at 21:09 UTC
476aab955260c5f25d0e67d2851f2652d01cea96
1 file changed
-46
cmd/ipfs2/tour_test.go
-46
@@ -2,7 +2,6 @@ package main
2
3
import (
4
"bytes"
5
- "errors"
5
"testing"
6
7
"github.com/jbenet/go-ipfs/tour"
@@ -24,48 +23,3 @@ This is where we test our beautiful command line interfaces
23
}
24
t.Log(buf.String())
25
}
27
-
28
-func TestRenderTourOutputList(t *testing.T) {
29
-
30
- t.Log(`Ensure we can successfully print the tour output when there's an
31
- error and list of tour topics`)
32
- listOutput := &tourOutput{
33
- Error: errors.New("Topic 42 does not exist"),
34
- Topics: []tour.Topic{
35
- tour.Topic{
36
- ID: "41",
37
- Title: "Being one shy of the mark",
38
- Text: "Poor thing.",
39
- },
40
- tour.Topic{
41
- ID: "44",
42
- Title: "Two shy of the mark",
43
- Text: "Oh no.",
44
- },
45
- },
46
- }
47
-
48
- var list bytes.Buffer
49
- if err := printTourOutput(&list, listOutput); err != nil {
50
- t.Fatal(err)
51
- }
52
- t.Log(list.String())
53
-}
54
-
55
-func TestRenderTourOutputSingle(t *testing.T) {
56
- t.Log(`
57
- When there's just a single topic in the output, ensure we can render the
58
- template`)
59
- singleOutput := &tourOutput{
60
- Topic: &tour.Topic{
61
- ID: "42",
62
- Title: "Informative!",
63
- Text: "Compelling!",
64
- },
65
- }
66
- var single bytes.Buffer
67
- if err := printTourOutput(&single, singleOutput); err != nil {
68
- t.Fatal(err)
69
- }
70
- t.Log(single.String())
71
-}