Skip to content

Commit

Permalink
Fix revert display on coverage reports (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcz authored May 21, 2023
1 parent 87449e9 commit 40f1c08
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Echidna/Output/Source.hs
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,14 @@ srcMapCov sc covMap contracts = do
case srcMapCodePos sc srcMap of
Just (file, line) ->
Map.alter
(Just . Map.insert line (unpackTxResults txResults) . fromMaybe mempty)
(Just . innerUpdate . fromMaybe mempty)
file
acc
where
innerUpdate =
Map.alter
(Just . (<> unpackTxResults txResults) . fromMaybe mempty)
line
Nothing -> acc
Nothing -> acc
) mempty vec
Expand Down

0 comments on commit 40f1c08

Please sign in to comment.