File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
internal/testing/unit_tests/UnitTest/TestCoverage/Unit Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ Method TestMethodsInThisClass()
10
10
Do $$$AssertStatusOK($System .OBJ .Compile ($classname ()," ck-d" ))
11
11
Do $$$AssertStatusOK(##class (TestCoverage.Data.CodeUnit ).GetCurrentByName (tClass _" .1.INT" ))
12
12
If $$$AssertStatusOK(##class (TestCoverage.Data.CodeUnit ).GetCurrentByName (tClass _" .CLS" ,,.tCodeUnit )) {
13
+ Do $$$AssertStatusOK(##class (TestCoverage.Data.CodeUnit ).GetCurrentByName (tClass _" .PY" ,,.tPyCodeUnit ))
14
+ Do tCodeUnit .UpdatePyExecutableLines (tClass , .tPyCodeUnit )
13
15
Set tKey = " "
14
16
For {
15
17
#dim tMethod As TestCoverage.Data.CodeSubUnit.Method
@@ -243,5 +245,13 @@ Method MethodWithComplexMacros(pStatus As %Status)
243
245
$$$ThrowOnError(pStatus )
244
246
}
245
247
248
+ /// Complexity: 3 (1 + for + if)
249
+ ClassMethod ForLoopPython () [ Language = python ]
250
+ {
251
+ for i in range (5 ):
252
+ if i > 4 :
253
+ continue
254
+ return 1
246
255
}
247
256
257
+ }
You can’t perform that action at this time.
0 commit comments