diff options
author | Dirk Olbrich <mail@dirkolbrich.de> | 2021-04-12 23:42:51 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-04-20 17:24:17 +0200 |
commit | bc80022e033a5462d1a9ce541f40a050994011cc (patch) | |
tree | 2767906a3b8dec84e332e35f4c0a2236dff4add7 /hugolib/site_test.go | |
parent | 2bb9496ce29dfe90e8b3664ed8cf7f895011b2d4 (diff) |
publisher: Exclude comment and doctype elements from writeStats
- Reorder code blocks
- Rename cssClassCollectorWriter to htmlElementCollectorWriter, as it just collect html element information
- Expand benchmark to test for minified and unminified content
Fixes #8396
Fixes #8417
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r-- | hugolib/site_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go index cd7ce51f8..365679a32 100644 --- a/hugolib/site_test.go +++ b/hugolib/site_test.go @@ -1113,7 +1113,7 @@ ABC. els := stats.HTMLElements b.Assert(els.Classes, qt.HasLen, 3606) // (4 * 900) + 4 +2 - b.Assert(els.Tags, qt.HasLen, 9) + b.Assert(els.Tags, qt.HasLen, 8) b.Assert(els.IDs, qt.HasLen, 1) } } |