You are on page 1of 2

if a>b then

c=a-b
else
c=a+b
endif
read d
if c=d then
print "Error"
endif

p n : 2 tests for statement coverage, 2 for branch coverage

+statement coverage
+branch coverage
+condition coverage
+path coverage

chun bs7925

+process of testing

Success factors for reviews


+find a champion
+pick things that really count
+explicitly plan & track review activities
+train participants
+manage people issues
+follow me rules but keep it simple
+continuously & improve process & tool

+report results
+just do it

METRICS (Thc o )
What is Cyclomatic Complexity

Calculating the McCabe Number


1. Cyclomatic complexity ( CC) = E N +2P
E = the number of edges
N = the number of nodes
P = the number of connected components
2. CC = P+1
3. CC = the number of regions in the graph

You might also like