AstuteSource / chasten

:dizzy: Chasten Uses XML and XPATH to Check a Python Program's AST for Specified Patterns!
https://pypi.org/project/chasten/
GNU General Public License v2.0
7 stars 8 forks source link

Add test case to `total_amount_passed` function #113

Closed CalebKendra closed 8 months ago

CalebKendra commented 8 months ago

Currently, there are no test cases for the function total_amount_passed. This finds the total amount of checks passed and not passed, then calculates the percentage of total checks that passed. There should be a test case to test this function.

gkapfham commented 8 months ago

Hi @CalebKendra, thanks for raising this issue, I agree that this is something that should be fixed. Do you have an estimate as to by how much this will increase the test coverage?

CalebKendra commented 8 months ago

Hi @CalebKendra, thanks for raising this issue, I agree that this is something that should be fixed. Do you have an estimate as to by how much this will increase the test coverage?

I believe the change will be inconsequential when it comes to total coverage percentage, however with what I have learned from making this change I believe I can significantly increase test coverage amounts.