Coverage Report: Coaster
File: PassengerScan.cpp
show more
show less
Parent Entity
All Files
Source Code Location
C:\Testwell\Samples\Coaster\CoasterCode\PassengerScan.cpp
Instrumentation Origin
C:\Testwell\Samples\Coaster\MON.sym
directly instrumented
2024-03-01 10:47:59
MultiCond
MC/DC
75%
6 / 8
Statement
100%
3 / 3
True
Highlight:
All
MC/DC
Statement
False
Source & Details
Show Code:
Outside Functions
Show Coverage Details:
Single Probe Descriptions
Condition Blocks
True-False-Tables
MC/DC Blocks
PassengerScan.cpp
All Files
1
#include "PassengerScan.h"
2
3
bool
hasAdmission(
float
BodyHeight,
int
Age)
4
FUNCTION hasAdmission()
4
{
5
if
(BodyHeight >= 1.2 && BodyHeight <= 1.9 && Age >= 6)
3
1
if (BodyHeight >= 1.2 && BodyHeight <= 1.9 && Age >= 6)
3
1
T && T && T
1
2
T && T && F
0
3
T && F && _
0
4
F && _ && _
-
MC/DC
BodyHeight >= 1.2:
1, 4
-
MC/DC
BodyHeight <= 1.9:
1, 3
+
MC/DC
Age >= 6:
1, 2
6
{
7
return
true
;
3
return true
8
}
9
else
else
10
{
11
return
false
;
1
return false
12
}
13
}
function end
Overview
❮❮
❮
All Files
PassengerScan.cpp
PriceCalculation.cpp
Rollercoaster.cpp
TicketApp.cpp
Select File
❯
❯❯