Commit f61ebd2
committed
test: cover parseLootEntries catch block for malformed JSON
Add a backfillLootTotals test that inserts a row with invalid JSON in
lootDetail so the JSON.parse catch branch in parseLootEntries is
exercised, restoring 100% line coverage on codeManager.ts.
Signed-off-by: Michael Cramer <michael@bigmichi1.de>1 parent c9e84eb commit f61ebd2
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
797 | 807 | | |
| 808 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments