diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-11 00:08:08 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-11 00:08:08 +1000 |
commit | 60dd11deeec8254da45f9f5b7d24dedef27c4f53 (patch) | |
tree | 4c60a98e94d7b89204fa698496b75dcbf71cd42d /html/html_test.go | |
parent | b2713a0653eca81d1428112dd8b29b3fd4c53089 (diff) |
Add go report card
Diffstat (limited to 'html/html_test.go')
-rw-r--r-- | html/html_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/html_test.go b/html/html_test.go index f614b4d..7649fdd 100644 --- a/html/html_test.go +++ b/html/html_test.go @@ -7,10 +7,10 @@ import ( ) func TestParse(t *testing.T) { - result, err := Parse(`<body>hello <p color="blue">world</p></body>`) + result, err := parse(`<body>hello <p color="blue">world</p></body>`) require.NoError(t, err) - require.Equal(t, Tag{Name: "body", Attributes: map[string]string{}, Body: []interface{}{ + require.Equal(t, htmlTag{Name: "body", Attributes: map[string]string{}, Body: []interface{}{ "hello ", - Tag{Name: "p", Attributes: map[string]string{"color": "blue"}, Body: []interface{}{"world"}}, + htmlTag{Name: "p", Attributes: map[string]string{"color": "blue"}, Body: []interface{}{"world"}}, }}, result) } |