about summary refs log tree commit diff
path: root/src/librustdoc/html/length_limit/tests.rs
AgeCommit message (Collapse)AuthorLines
2023-01-27Remove from librustdoc and clippy tooScott McMurray-1/+1
2021-08-25Don't panic if `close_tag()` is called without tags to closeNoah Lev-1/+4
This can happen when a tag is opened after the length limit is reached; the tag will not end up being added to `unclosed_tags` because the queue will never be flushed. So, now, if the `unclosed_tags` stack is empty, `close_tag()` does nothing. This change fixes a panic in the `limit_0` unit test.
2021-08-25Add tests for `HtmlWithLimit`Noah Lev-0/+117