DD2480-G12 / libphonenumber

Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.
Apache License 2.0
0 stars 0 forks source link

Implement branch coverage for PhoneNumberUtil::testNumberLength #6

Open ekner opened 2 years ago

ekner commented 2 years ago

Results: 91% branch coverage (21 out of 23).

1. What is the quality of your own coverage measurement? Does it take into account ternary operators (condition ? yes : no) and exceptions, if available in your language? Yes, it takes those into account.

2. What are the limitations of your tool? How would the instrumentation change if you modify the program? It does not take the CC of the called functions into account.

3. If you have an automated tool, are your results consistent with the ones produced by existing tool(s) I would say so, yes. When looking in Intellij, there are two red parts, and my calculation results in two missing branches, so it seems to match.