LCOM

De Software testing
Ir para: navegação, pesquisa

Concepts

  • LCOM is the lack of cohesion in methods. <bib>vincenzi-etal:2003, 32</bib>


Facts

  • LCOM is calculated by counting the pairs of methods in the class that do not share instance variables subtracted the number of pairs of methods that share instance variables. If the result is negative, the value of the metric is zero. Static methods must not be accounted. <bib>vincenzi-etal:2003, 32</bib>