mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 02:57:37 +01:00
fix(block-ci): mask code spans that wrap lines before matching links
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2c8d8d3a14
commit
eeef10aeb2
2 files changed
+6
-3
No files matched your search
@@ -64,6 +64,9 @@ class DocLinksTests(unittest.TestCase):
|
||||
"",
|
||||
"see the [wrapped",
|
||||
"label](wrapped.md) here",
|
||||
"",
|
||||
"`[wrapped",
|
||||
"code](gone.md)` then [after](after.md)",
|
||||
"````md",
|
||||
"```",
|
||||
"[example](missing.md)",
|
||||
@@ -71,7 +74,7 @@ class DocLinksTests(unittest.TestCase):
|
||||
"````",
|
||||
]) + "\n")
|
||||
broken = [(line, target) for _, line, target in links.broken_links(root)]
|
||||
self.assertEqual(broken, [(1, "guide(v1).md"), (3, "wrapped.md")])
|
||||
self.assertEqual(broken, [(1, "guide(v1).md"), (3, "wrapped.md"), (7, "after.md")])
|
||||
|
||||
def test_main_exit_status(self):
|
||||
out = io.StringIO()
|
||||
|
||||
Reference in new issue
Block a user