Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit b658804

Browse files
robrixpatrickt
andcommitted
Test the coverage of source values.
Co-Authored-By: Patrick Thomson <patrickt@users.noreply.github.com>
1 parent 0af81b1 commit b658804

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Data/Source/Spec.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ testTree = Tasty.testGroup "Data.Source"
7272
]
7373
where summarize src = do
7474
let lines = sourceLines src
75-
classify "empty" $ nullSource src
76-
classify "single-line" $ length lines == 1
77-
classify "multiple lines" $ length lines > 1
75+
cover 5 "empty" $ nullSource src
76+
cover 20 "single-line" $ length lines == 1
77+
cover 50 "multiple lines" $ length lines > 1
7878

7979
spec :: Spec
8080
spec = do

0 commit comments

Comments
 (0)