mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Swift: make trap key prefixes readable
This replaces numeric tag-based prefixes with the actual tag name. While this means in general slightly larger trap files, it aids debugging them for a human. In the future we can make this conditional on some kind of trap debug option, but for the moment it does not seem detrimental.
This commit is contained in:
@@ -65,7 +65,7 @@ def test_trap_has_first_field_marked():
|
||||
def test_tag_has_first_base_marked():
|
||||
bases = ["a", "b", "c"]
|
||||
expected = [cpp.TagBase("a", first=True), cpp.TagBase("b"), cpp.TagBase("c")]
|
||||
t = cpp.Tag("name", bases, 0, "id")
|
||||
t = cpp.Tag("name", bases, "id")
|
||||
assert t.bases == expected
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ def test_tag_has_first_base_marked():
|
||||
(["a", "b"], True)
|
||||
])
|
||||
def test_tag_has_bases(bases, expected):
|
||||
t = cpp.Tag("name", bases, 0, "id")
|
||||
t = cpp.Tag("name", bases, "id")
|
||||
assert t.has_bases is expected
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user