@@ -10,6 +10,65 @@ import (
10
10
)
11
11
12
12
var (
13
+ feedReaderDocumentFeedly = Document {
14
+ XMLName : xml.Name {Local : "opml" },
15
+ Version : Version1 ,
16
+ Head : Head {
17
+ Title : "My subscriptions in feedly Cloud" ,
18
+ },
19
+ Body : Body {
20
+ Outlines : []Outline {
21
+ {
22
+ Text : "Programming" ,
23
+ Title : "Programming" ,
24
+ Outlines : []Outline {
25
+ {
26
+ Text : "Elixir Lang" ,
27
+ Title : "Elixir Lang" ,
28
+ Type : OutlineTypeSubscription ,
29
+ HtmlUrl : "http://elixir-lang.org" ,
30
+ XmlUrl : "https://feeds.feedburner.com/ElixirLang" ,
31
+ },
32
+ {
33
+ Text : "Zephyr Project" ,
34
+ Title : "Zephyr Project" ,
35
+ Type : OutlineTypeSubscription ,
36
+ HtmlUrl : "https://www.zephyrproject.org" ,
37
+ XmlUrl : "https://www.zephyrproject.org/feed/" ,
38
+ },
39
+ {
40
+ Text : "Python Insider" ,
41
+ Title : "Python Insider" ,
42
+ Type : OutlineTypeSubscription ,
43
+ HtmlUrl : "https://pythoninsider.blogspot.com/" ,
44
+ XmlUrl : "https://feeds.feedburner.com/PythonInsider" ,
45
+ },
46
+ },
47
+ },
48
+ {
49
+ Text : "Games" ,
50
+ Title : "Games" ,
51
+ Outlines : []Outline {
52
+ {
53
+ Text : "BeamNG.drive" ,
54
+ Title : "BeamNG.drive" ,
55
+ Type : OutlineTypeSubscription ,
56
+ HtmlUrl : "https://www.beamng.com/game/" ,
57
+ XmlUrl : "https://www.beamng.com/game/index.xml" ,
58
+ },
59
+ {
60
+ Text : "Vintage Story" ,
61
+ Title : "Vintage Story" ,
62
+ Type : OutlineTypeSubscription ,
63
+ HtmlUrl : "https://www.vintagestory.at/blog.html/" ,
64
+ XmlUrl : "https://www.vintagestory.at/blog.html/?rss=1" ,
65
+ },
66
+ },
67
+ },
68
+ },
69
+ },
70
+ }
71
+
13
72
feedReaderDocumentNewsblur = Document {
14
73
XMLName : xml.Name {Local : "opml" },
15
74
Version : Version1_1 ,
@@ -91,6 +150,11 @@ func TestUnmarshalFeedReader(t *testing.T) {
91
150
inputFileName string
92
151
want Document
93
152
}{
153
+ {
154
+ tname : "feedly" ,
155
+ inputFileName : "feedly.opml" ,
156
+ want : feedReaderDocumentFeedly ,
157
+ },
94
158
{
95
159
tname : "newsblur" ,
96
160
inputFileName : "newsblur.opml" ,
0 commit comments