Skip to content

Commit

Permalink
lints and test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Oct 23, 2023
1 parent 8e21dbf commit 8231446
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- Emit a MODULE record for PE files ([#814](https://github.com/getsentry/symbolic/pull/814))

**Features**

- Update proguard and add `remap_method` fn ([#818](https://github.com/getsentry/symbolic/pull/818))

## 12.4.1

**Fixes**
Expand Down
11 changes: 5 additions & 6 deletions py/tests/test_proguard.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ def test_mapper(res_path):
== "android.support.constraint.ConstraintLayout$LayoutParams"
)

assert mapper.remap_method("android.support.constraint.a.b", "f") == (
"android.support.constraint.solver.ArrayRow",
"pickRowVariable",
)

remapped = mapper.remap_frame("android.support.constraint.a.b", "a", 116)
assert len(remapped) == 1
assert remapped[0].class_name == "android.support.constraint.solver.ArrayRow"
Expand All @@ -27,9 +32,3 @@ def test_mapper(res_path):
assert remapped[1].line == 44
assert remapped[2].method == "onClickHandler"
assert remapped[2].line == 40

remapped = mapper.remap_method("android.support.constraint.a.b", "f")
assert remapped == (
"android.support.constraint.solver.ArrayRow",
"void pickRowVariable()",
)

0 comments on commit 8231446

Please sign in to comment.