Branch data Line data Source code
1 : : #include "package1/package1.hpp" 2 : : 3 : 2 : int func(bool condition_a, bool condition_b, bool condition_c) { 4 : 2 : int count = 0; 5 [ + - ]: 2 : if (condition_a) { 6 : 2 : count++; 7 : : } else { 8 : 0 : count--; 9 : : } 10 [ + + ]: 2 : if (condition_b) { 11 : 1 : count++; 12 : : } else { 13 : 1 : count--; 14 : : } 15 [ - + ]: 2 : if (condition_c) { 16 : 0 : count++; 17 : : } else { 18 : 2 : count--; 19 : : } 20 : 2 : return count; 21 : : } 22 : : 23 : 1 : std::string add_world(std::string input) { 24 [ + - ]: 1 : if (input == "hello") { 25 : 1 : return input + " world!"; 26 : : } else { 27 : 0 : input += "!"; 28 : : } 29 : 0 : return input; 30 : : }