[clang] Fix tests of lookup table generator (PR #139463)
via cfe-commits
cfe-commits at lists.llvm.org
Sun May 11 12:40:13 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r HEAD~1...HEAD clang/tools/include-mapping/test.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- test.py 2025-05-11 19:36:59.000000 +0000
+++ test.py 2025-05-11 19:39:49.979769 +0000
@@ -90,11 +90,13 @@
</td>
<td>this is matched</td>
</tr>
</tbody></table>
"""
- self.assertEqual(_ParseSymbolPage(html, "foo", "foo"), set(["<cstdio>", "<cstdlib>"]))
+ self.assertEqual(
+ _ParseSymbolPage(html, "foo", "foo"), set(["<cstdio>", "<cstdlib>"])
+ )
def testParseSymbolPage_MulHeadersInSameDiv(self):
# Multile <code> blocks in a Div.
# Defined in header <algorithm>
# Defined in header <utility>
@@ -141,10 +143,12 @@
<td>this is matched</td>
</tr>
</tbody></table>
"""
self.assertEqual(_ParseSymbolPage(html, "int8_t", "int8_t"), set(["<cstdint>"]))
- self.assertEqual(_ParseSymbolPage(html, "int16_t", "int16_t"), set(["<cstdint>"]))
+ self.assertEqual(
+ _ParseSymbolPage(html, "int16_t", "int16_t"), set(["<cstdint>"])
+ )
if __name__ == "__main__":
unittest.main()
``````````
</details>
https://github.com/llvm/llvm-project/pull/139463
More information about the cfe-commits
mailing list