Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
38 views

I am trying to learn statement coverage analysis

I am trying to learn code coverage analysis; I am bit confused because the following code has loops. Example if the code like this read a; read b; i=0 if a>b while(to i<a) print(i) i++; end ...
Rashmika gamage's user avatar
0 votes
2 answers
2k views

White-box test cases with 100% code coverage

I apologize ahead as I'm very new to software testing. But I have what looks like a simple code to create a White-box test cases with 100% code coverage: 01 public class ShapeAreas { 02 03 public ...
jaggsharry's user avatar
0 votes
0 answers
417 views

Which methods are to be considered in method coverage

I have a confusion regarding the method coverage calculation. consider the code below. function A (n1) { if (n>1) C(); else print n1; } Now, My test case calls A() as A(1) It means ...
sheldon cooper's user avatar
0 votes
1 answer
825 views

how to manually calculate code coverage percentage for path coverage?

I am manually creating the white-box testing for our system and I have issues with automated coverage testing tools. This is a Java-based system. Path coverage % = (Total paths exercised / total ...
makingitwork's user avatar
1 vote
1 answer
1k views

unit testing Coverage Issue

my ultimate goal is to cover the below code (making complete code green). I am using cantata tool. #define CHECK1 ((a == 1) || (a == 4)) void check_fun(int a, int b) { if((!CHECK1)&...
venkatesh kambakana's user avatar
0 votes
1 answer
247 views

Code coverage of a daemon in Windows

I need to do code coverage on a daemon. The daemon application is written in c++. We test the daemon features with a client test program that has its own libraries. The libraries communicate with the ...
kk.'s user avatar
  • 687