mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 00:50:46 +08:00
Simplify compare verdict to fail, success, and pass rate.
Treat missing+mismatch as fail, match as success, and added as a special filter; show three right-aligned sheet badges. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
357b831f2d
commit
bb00ec91f4
6 changed files with 189 additions and 148 deletions
|
|
@ -303,7 +303,7 @@ class CompareDiffPagingTests(unittest.TestCase):
|
|||
},
|
||||
]
|
||||
only_diff = _filter_inline_diffs(diffs, kind="diff", kw="")
|
||||
self.assertEqual({d["kind"] for d in only_diff}, {"added", "removed", "changed"})
|
||||
self.assertEqual({d["kind"] for d in only_diff}, {"removed", "changed"})
|
||||
only_added = _filter_inline_diffs(diffs, kind="added", kw="")
|
||||
self.assertEqual(len(only_added), 1)
|
||||
hit = _filter_inline_diffs(diffs, kind="all", kw='"p":"4"')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue