Coverage Report |
|
|
|
1 : #include "sub/Foo.hpp"
2 : #include <cstdlib>
3 :
4 : using std::atoi;
5 :
6 1 / 1 : int main(int argc,char* argv[])
7 : {
8 1 / 1 : int max=10;
9 1 / 1 : if (argc>1) {
10 1 / 1 : if (atoi(argv[1]))
11 0 / 1 : max=atoi(argv[1]);
12 : }
13 :
14 1 / 1 : Foo foo;
15 1 / 1 : foo.bar(-2);
16 2 / 2 : for (int index=0;index<max;index+=2)
17 1 / 1 : foo.bar(index);
18 :
19 1 / 1 : return 0;
20 :
21 : // The next line is only partially executed because no execption was thrown
22 1 / 2 : }
23 :