Skip to content

Commit 40f1c08

Browse files
authored
Fix revert display on coverage reports (#1051)
1 parent 87449e9 commit 40f1c08

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Echidna/Output/Source.hs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,14 @@ srcMapCov sc covMap contracts = do
173173
case srcMapCodePos sc srcMap of
174174
Just (file, line) ->
175175
Map.alter
176-
(Just . Map.insert line (unpackTxResults txResults) . fromMaybe mempty)
176+
(Just . innerUpdate . fromMaybe mempty)
177177
file
178178
acc
179+
where
180+
innerUpdate =
181+
Map.alter
182+
(Just . (<> unpackTxResults txResults) . fromMaybe mempty)
183+
line
179184
Nothing -> acc
180185
Nothing -> acc
181186
) mempty vec

0 commit comments

Comments
 (0)