-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test Coverage Improvements needed (November 2024) #1781
Comments
After removing Siduck code (PR #1780):
|
After adding tests and removing dead code from quicctx.c (PR #1784):
|
After adding tests of the frames parsing and formatting functions (PR #1785):
|
Fixing the spinbit tests in PR #1786 includes better design of the Spinbit API, and brings the test coverage of the spincode to 100%. However, that code is tiny, and there is hardly any effect on global coverage.
|
The BBRv1 code is kept in the build for research purposes, such as measuring the difference between old and new versions. There was just one scenario tested, and the test coverage of that module was less than 60%. After adding a few tests in PR #1787, the coverage of that module increases to 81.7% of code lines. That's not great, but probably OK given the expectations. Increasing that would probably require working on the details of the BBRv1 implementation, which is low priority. In any case, after these improvements, the coverage becomes:
|
Before PR #1790, the coverage of the module
|
The
|
Prior to PR #1792, the test coverage of
|
PR #1793 adds more tests for the "demo client" code. Prior to that, the test coverage of
|
The memory log code was untested, and so was the "svg" logging mode available in
|
The test coverage of the web transport implementation was limited. It is significantly improved in PR #1798. The global coverage becomes:
|
After removing unused code from
|
After removing dead code and add tests for the functions in
Add this point, we have met the goals set for the effort: global coverage over 90% for lines, over 75% for branches. Further efforts will be done when adding new functions. |
The code coverage of the test of the main picoquic libraries as of 2024/11/20 stands as:
It should be improved by pruning obsolete code (e.g., the "siduck" test of the datagram function). and by targeted improvements in test code.
The text was updated successfully, but these errors were encountered: