diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-01-28 22:34:10 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-01-28 23:14:09 +0100 |
commit | a795acbcd8b18aa4af384d5c03f30740361c8fcf (patch) | |
tree | 0dbf7b000681a738b892c5235daf52c63cda88b9 /parser/metadecoders | |
parent | 982d9513e71b3d48e20cfa38454a0e1215a8d963 (diff) | |
download | hugo-a795acbcd8b18aa4af384d5c03f30740361c8fcf.tar.gz hugo-a795acbcd8b18aa4af384d5c03f30740361c8fcf.zip |
all: Run gofumpt -l -w .
Diffstat (limited to 'parser/metadecoders')
-rw-r--r-- | parser/metadecoders/decoder_test.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/parser/metadecoders/decoder_test.go b/parser/metadecoders/decoder_test.go index 48def7d12..734713c2e 100644 --- a/parser/metadecoders/decoder_test.go +++ b/parser/metadecoders/decoder_test.go @@ -56,23 +56,26 @@ func TestUnmarshalXML(t *testing.T) { "guid": "https://example.com/2021/11/30/example-title/", "link": "https://example.com/2021/11/30/example-title/", "pubDate": "Tue, 30 Nov 2021 15:00:00 +0000", - "title": "Example title"}, + "title": "Example title", + }, "language": "en-us", "lastBuildDate": "Fri, 08 Jan 2021 14:44:10 +0000", "link": []any{"https://example.com/", map[string]any{ "-href": "https://example.com/feed.xml", "-rel": "self", - "-type": "application/rss+xml"}}, + "-type": "application/rss+xml", + }}, "title": "Example feed", - }} + }, + } d := Default m, err := d.Unmarshal([]byte(xmlDoc), XML) c.Assert(err, qt.IsNil) c.Assert(m, qt.DeepEquals, expect) - } + func TestUnmarshalToMap(t *testing.T) { c := qt.New(t) |