mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
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
This commit is contained in:
parent
2bb9496ce2
commit
bc80022e03
3 changed files with 328 additions and 191 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue