-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathrender_test.go
76 lines (67 loc) · 1.65 KB
/
render_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package gosk
import (
"testing"
)
func TestRenderPosts(t *testing.T) {
var rf = new(RenderFactory)
yp := new(YamlParser)
yamlData := yp.parse("root")
err := rf.RenderPosts("root", yamlData)
if err != nil {
t.Errorf("Render Index failed! -- " + err.Error())
}
}
func TestRenderIndex(t *testing.T) {
var rf = new(RenderFactory)
yp := new(YamlParser)
yamlData := yp.parse("root")
err := rf.RenderIndex("root", yamlData)
if err != nil {
t.Errorf("Render Index failed! -- " + err.Error())
}
}
func TestRenderRss(t *testing.T) {
var rf = new(RenderFactory)
yp := new(YamlParser)
yamlData := yp.parse("root")
err := rf.RenderRss("root", yamlData)
if err != nil {
t.Errorf("Render Rss failed! -- " + err.Error())
}
}
func TestRenderTag(t *testing.T) {
var rf = new(RenderFactory)
yp := new(YamlParser)
yamlData := yp.parse("root")
err := rf.RenderTag("root", yamlData)
if err != nil {
t.Errorf("Render Tag failed! -- " + err.Error())
}
}
func TestRenderCategories(t *testing.T) {
var rf = new(RenderFactory)
yp := new(YamlParser)
yamlData := yp.parse("root")
err := rf.RenderCategories("root", yamlData)
if err != nil {
t.Errorf("Render Tag failed! -- " + err.Error())
}
}
func TestRenderArchives(t *testing.T) {
var rf = new(RenderFactory)
yp := new(YamlParser)
yamlData := yp.parse("root")
err := rf.RenderArchives("root", yamlData)
if err != nil {
t.Errorf("Render Pages failed! -- " + err.Error())
}
}
func TestRenderPages(t *testing.T) {
var rf = new(RenderFactory)
yp := new(YamlParser)
yamlData := yp.parse("root")
err := rf.RenderPages("root", yamlData)
if err != nil {
t.Errorf("Render Pages failed! -- " + err.Error())
}
}