A simple scenario (I)
Let us assume I have 3 classes A,B,C.
Each class has 100 lines on them.
Total Number of Apex lines written (for simplicity sake let us assume that none of the 300 lines are comments, @Test etc)
Q : So every uncovered line of each class in this simple scenario will contribute to a loss 0.33 % in overall code coverage...am I right ?
A complex scenario (II)
Class A : 50 lines
Class B : 100 lines
Class C : 150 lines
Again for simplicity sake let us assume that none of the 300 lines are comments, @Test etc
Q : How much loss of test coverage % will be caused by each uncovered code line in this scenario ?....Is it once again 0.33 % ??
My objective is to understand whether the entire test coverage is calculated simply like
Test Coverage % = (Covered Lines across all classes / Total Lines across all classes) * 100
Or any other way is involved ??