summaryrefslogtreecommitdiffstats
path: root/Tests/MumpsCoverage/ZZCOVTST.cmcov
diff options
context:
space:
mode:
authorJoseph Snyder <joe.snyder@kitware.com>2014-05-14 13:28:07 (GMT)
committerBrad King <brad.king@kitware.com>2014-05-16 14:16:40 (GMT)
commit9ad07fbeb8166e01f8d22a1fa78b29f6cfa7721e (patch)
treea460788b53cf70d55424951760e4c6d64234862a /Tests/MumpsCoverage/ZZCOVTST.cmcov
parentd3417a270f9556caa87851dd8a27ab007a6162b1 (diff)
downloadCMake-9ad07fbeb8166e01f8d22a1fa78b29f6cfa7721e.zip
CMake-9ad07fbeb8166e01f8d22a1fa78b29f6cfa7721e.tar.gz
CMake-9ad07fbeb8166e01f8d22a1fa78b29f6cfa7721e.tar.bz2
CTest: Fix MUMPS coverage parsing and test
Fix the MUMPS coverage parser: * Account for tabs after entry points * Stop double incrementing lines that have explicit calls to the 0 line * If a line has been previously marked as non executable, but then contains a count, increment it an extra one to push it back into the executable code set. Add a custom routine and corresponding coverage files in the test case. This file is smaller and has cmcov/mcov files that have data for only that routine.
Diffstat (limited to 'Tests/MumpsCoverage/ZZCOVTST.cmcov')
-rw-r--r--Tests/MumpsCoverage/ZZCOVTST.cmcov38
1 files changed, 38 insertions, 0 deletions
diff --git a/Tests/MumpsCoverage/ZZCOVTST.cmcov b/Tests/MumpsCoverage/ZZCOVTST.cmcov
new file mode 100644
index 0000000..798e5b2
--- /dev/null
+++ b/Tests/MumpsCoverage/ZZCOVTST.cmcov
@@ -0,0 +1,38 @@
+Routine,Line,RtnLine,Code
+ZZCOVTST,1,0,"ZZCOVTST;OSEHRA/JPS -- Test routine for Coverage Parsing;4/28/2014"
+,2,0," ; (tab) This is series of comments"
+,3,0," ; (tab) it should all be not executable"
+,4,0," ; (spaces) one of these sets might be a problem"
+,5,0," ; (spaces) we will have to see."
+,6,0,"EN ; This entry point shouldn't be found without fixing"
+,7,1," N D"
+,8,1," S D=1 ;An executable line"
+,9,1," D T1^ZZCOVTST"
+,10,1,"I '$$T5 W ""RETURNED FROM t5"",!"
+,11,1," Q"
+,12,0," ; This line not executable"
+,13,0," ;"
+,14,0,"T1 ; This line should always be found"
+,15,1," N D"
+,16,1," S D=2"
+,17,1," W !,D,!,""This is the second entry point"",!"
+,18,1," D T2^ZZCOVTST(D)"
+,19,1," Q"
+,20,0," ;"
+,21,0,"T2(EQ) ; This is debatable"
+,22,1," N D"
+,23,1," S D=3"
+,24,1," W !,D,!,EQ,""This is the third entry point"",!"
+,25,1," D T3^ZZCOVTST"
+,26,1," Q"
+,27,0," ;"
+,28,1,"T3 N D S D=4 W D,!,""Fourth Entry point"",! Q"
+,29,0," ;"
+,30,0,"T4 N D S D=5 W ""Shouldn't be executed"""
+,31,0," W ""Lots to not do"""
+,32,0," Q"
+,33,1,"T5()"
+,34,1," W ""THIS IS ONE WITH $$ NOTATION"",1"
+,35,1," Q 0"
+,36,0," ;"
+Totals for ZZCOVTST,,19,