sota
Class Metrics

java.lang.Object
  extended by sota.Metrics

public class Metrics
extends java.lang.Object

Container for all static and coverage metrics.


Field Summary
 float bi
          Boundary-interior path coverage:
bi := 100.0f * nrCoveredBIPaths / nrBIPaths
 float c0
          Statement coverage:
c0 := 100.0f * nrCoveredStatements / nrStatements
 float c1
          Branch coverage:
c1 := 100.0f * nrCoveredBranches / nrBranches
 float c2
          Condition coverage:
c2 := 100.0f * nrAtomEvaluations / (nrAtoms * 2)
 float c3
          Multiple condition coverage:
c3 := 100.f * nrAtomCombinationEvaluations / nrAtomCombinations
 int cyclomaticComplexity
          The highest cyclomatic complexity of a function.
 int essentialComplexity
          The highest essential complexity of a function.
 float feec
          Function-entry-exit coverage:
feec := 100.0f * (nrEnteredFunctions + nrReachedExits) / (nrFunctions + nrFunctionExits)
 float mbi
          Modified boundary-interior path coverage:
mbi := 100.0f * nrCoveredModBIPaths / nrModBIPaths
 float mcdc
          Modified decision/condition coverage:
mcdc := 100.0f * nrMcdcPairs / nrAtoms
 float mmdc
          Minimal multiple condition coverage: mmdc := 100.0f * nrConditionEvaluations / (nrConditions * 2)
 int nrAtomCombinationEvaluations
          The number of occured combinations of truthvectors for all conditions in a test.
 int nrAtomCombinations
          The number of possible combinations of truthvectors for all conditions.
 int nrAtomEvaluations
          The number of evalutations to true and false of all boolean atoms in a test.
 int nrAtoms
          The number of boolean atoms.
 long nrBIPaths
          The number of possible paths for the boundary-interior path coverage test.
 int nrBranches
          The number of all branches.
 int nrClasses
          The number of classes.
 int nrConditionEvaluations
          The number of evaulations of boolean atoms and complex conditions in a test.
 int nrConditionNodes
          The number of conditions (on statement level).
 int nrConditions
          The number of boolean atoms and complex conditions.
 long nrCoveredBIPaths
          The number of tested paths for the boundary-interior path coverage test.
 int nrCoveredBranches
          The number of covered branches in a test.
 long nrCoveredModBIPaths
          The number of tested paths for the modified boundary-interior path coverage test.
 int nrCoveredStatements
          The number of covered statements in a test.
 int nrEnteredFunctions
          The number of function called in a test.
 int nrFiles
          The number of files.
 int nrFunctionExits
          The number of function exits.
 int nrFunctions
          The number of functions.
 int nrInnerClasses
          The number of inner classes.
 int nrLines
          The number of lines of code.
 int nrMcdcPairs
          The number of MCDC pairs in a test.
 long nrModBIPaths
          The number of possible paths for the modified boundary-interior path coverage test.
 int nrReachedExits
          The number of function exits reached in a test.
 int nrStatements
          The number of statements.
 
Constructor Summary
Metrics()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bi

public float bi
Boundary-interior path coverage:
bi := 100.0f * nrCoveredBIPaths / nrBIPaths


c0

public float c0
Statement coverage:
c0 := 100.0f * nrCoveredStatements / nrStatements


c1

public float c1
Branch coverage:
c1 := 100.0f * nrCoveredBranches / nrBranches


c2

public float c2
Condition coverage:
c2 := 100.0f * nrAtomEvaluations / (nrAtoms * 2)


c3

public float c3
Multiple condition coverage:
c3 := 100.f * nrAtomCombinationEvaluations / nrAtomCombinations


cyclomaticComplexity

public int cyclomaticComplexity
The highest cyclomatic complexity of a function.


essentialComplexity

public int essentialComplexity
The highest essential complexity of a function.


feec

public float feec
Function-entry-exit coverage:
feec := 100.0f * (nrEnteredFunctions + nrReachedExits) / (nrFunctions + nrFunctionExits)


mbi

public float mbi
Modified boundary-interior path coverage:
mbi := 100.0f * nrCoveredModBIPaths / nrModBIPaths


mcdc

public float mcdc
Modified decision/condition coverage:
mcdc := 100.0f * nrMcdcPairs / nrAtoms


mmdc

public float mmdc
Minimal multiple condition coverage: mmdc := 100.0f * nrConditionEvaluations / (nrConditions * 2)


nrAtomCombinationEvaluations

public int nrAtomCombinationEvaluations
The number of occured combinations of truthvectors for all conditions in a test.


nrAtomCombinations

public int nrAtomCombinations
The number of possible combinations of truthvectors for all conditions.


nrAtomEvaluations

public int nrAtomEvaluations
The number of evalutations to true and false of all boolean atoms in a test.


nrAtoms

public int nrAtoms
The number of boolean atoms.


nrBIPaths

public long nrBIPaths
The number of possible paths for the boundary-interior path coverage test.


nrBranches

public int nrBranches
The number of all branches. A branchless function has a value of 0. For each if and each loop the value increases by 2, for each switch and try by the number of possible branches.


nrClasses

public int nrClasses
The number of classes.


nrConditionEvaluations

public int nrConditionEvaluations
The number of evaulations of boolean atoms and complex conditions in a test.


nrConditionNodes

public int nrConditionNodes
The number of conditions (on statement level).


nrConditions

public int nrConditions
The number of boolean atoms and complex conditions.


nrCoveredBIPaths

public long nrCoveredBIPaths
The number of tested paths for the boundary-interior path coverage test.


nrCoveredBranches

public int nrCoveredBranches
The number of covered branches in a test.


nrCoveredModBIPaths

public long nrCoveredModBIPaths
The number of tested paths for the modified boundary-interior path coverage test.


nrCoveredStatements

public int nrCoveredStatements
The number of covered statements in a test.


nrEnteredFunctions

public int nrEnteredFunctions
The number of function called in a test.


nrFiles

public int nrFiles
The number of files.


nrFunctionExits

public int nrFunctionExits
The number of function exits.


nrFunctions

public int nrFunctions
The number of functions.


nrInnerClasses

public int nrInnerClasses
The number of inner classes.


nrLines

public int nrLines
The number of lines of code.


nrMcdcPairs

public int nrMcdcPairs
The number of MCDC pairs in a test.


nrModBIPaths

public long nrModBIPaths
The number of possible paths for the modified boundary-interior path coverage test.


nrReachedExits

public int nrReachedExits
The number of function exits reached in a test.


nrStatements

public int nrStatements
The number of statements.

Constructor Detail

Metrics

public Metrics()