--- a/RegressionTests__CoverageInstrumentationTest.st Wed Jun 29 21:40:53 2016 +0100
+++ b/RegressionTests__CoverageInstrumentationTest.st Thu Jun 30 09:02:08 2016 +0100
@@ -22,35 +22,35 @@
f2:aBoolean
aBoolean ifTrue:[
- ^ 1234
+ ^ 1234
].
^ 2345
!
f3:aBoolean
aBoolean ifTrue:[
- ^ 1234 "both should be executed with a true arg, and coverage should see that"
+ ^ 1234 "both should be executed with a true arg, and coverage should see that"
] ifFalse:[
- ^ 2345 "bith should be executed with a true arg, and coverage should see that"
+ ^ 2345 "bith should be executed with a true arg, and coverage should see that"
].
^ 3456
!
f4:aBoolean
aBoolean ifFalse:[
- ^ 1234 "should not be executed with a true arg, and coverage should see that"
+ ^ 1234 "should not be executed with a true arg, and coverage should see that"
].
!
f5:loopCount
1 to:loopCount do:[:i |
- 1 + 2 "should be executed 10 times, and coverage should see that"
+ 1 + 2 "should be executed 10 times, and coverage should see that"
].
!
f6:loopCount
1 to:loopCount do:[:i |
- self calledByF6
+ self calledByF6
].
! !
@@ -67,7 +67,7 @@
"/ execute
InstrumentationContext runForCoverage:[
- self f1.
+ self f1.
].
self assert:(m1 hasBeenCalled).
@@ -92,7 +92,7 @@
"/ execute
context := InstrumentationContext new.
context runForCoverage:[
- self f2:true.
+ self f2:true.
].
self assert:(m2 hasBeenCalled).
self assert:(m2 blockInvocationInfo conform:[:i | i hasBeenExecuted]).
@@ -102,7 +102,7 @@
"/ execute in the same context
context runForCoverage:[
- self f2:false.
+ self f2:false.
].
self assert:(m2 hasBeenCalled).
@@ -134,7 +134,7 @@
"/ execute
context := InstrumentationContext new.
context runForCoverage:[
- self f3:true.
+ self f3:true.
].
"/ one block should have been invoked, the other not"
@@ -148,7 +148,7 @@
"/ execute
context runForCoverage:[
- self f3:false.
+ self f3:false.
].
"/ both blocks should have been invoked"
@@ -184,7 +184,7 @@
"/ execute
InstrumentationContext runForCoverage:[
- self f4:true.
+ self f4:true.
].
self assert:(m4 hasBeenCalled).
@@ -208,7 +208,7 @@
"/ execute
InstrumentationContext run:[
- self f5:10.
+ self f5:10.
].
self assert:(m5 hasBeenCalled).
@@ -235,7 +235,7 @@
"/ execute
InstrumentationContext run:[
- self f6:10.
+ self f6:10.
].
self assert:(m hasBeenCalled).