diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-04-17 00:07:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-17 00:07:24 +0200 |
| commit | 0b43f70321df290f758cb4f835f861c4ea95d009 (patch) | |
| tree | 1b584f9123bafbc064bf190bea75c54d916369a7 /compiler/rustc_mir_transform/src/coverage/tests.rs | |
| parent | bd334984e217235b2b2089f3008e1d4be79b6deb (diff) | |
| parent | e6a87208071bc21bc3c5600e64f2fcd44245d805 (diff) | |
| download | rust-0b43f70321df290f758cb4f835f861c4ea95d009.tar.gz rust-0b43f70321df290f758cb4f835f861c4ea95d009.zip | |
Rollup merge of #95933 - Urgau:rustdoc-htmldocck-tree-compare, r=GuillaumeGomez
htmldocck: Compare HTML tree instead of plain text html This PR improves `htmldocck` by comparing HTML trees instead of plain text html in the case of doing a ```@snapshot``` test. This fix the [CI issue](https://github.com/rust-lang-ci/rust/runs/5964305020?check_suite_focus=true) encounter in https://github.com/rust-lang/rust/pull/95813 where for some unknown reason one of the attributes is not always at the same place. The code is largely based on https://github.com/formencode/formencode/blob/3a1ba9de2fdd494dd945510a4568a3afeddb0b2e/formencode/doctest_xml_compare.py#L72-L120 which is behind MIT License. The comparison function is straightforward except for the `text_compare` function which does some weird stuff that we may want to simply reduce to a plain old comparison. r? ``@GuillaumeGomez``
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions
