Skip to content

Conversation

@vladopajic
Copy link
Owner

@vladopajic vladopajic commented Jan 29, 2025

this pr fixes discrepancy issue when percentage was show in report and used inside code.

before, percentage in report was show as rounded value to 1 decimal point and when percentage was used in code it was truncated to integer value. this can cause issues like in #144.

to address this when percentage is calculated it will be rounded to 1 decimal point in order.

Closes: #144

@github-actions
Copy link

go-test-coverage report:

File coverage threshold (100%) satisfied:	PASS
Total coverage threshold (100%) satisfied:	PASS
Total test coverage: 100% (514/514)

Current tests coverage has not changed.

@vladopajic vladopajic merged commit 8e47c8e into main Jan 29, 2025
14 checks passed
@vladopajic vladopajic deleted the fix-prec-rounding branch January 29, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The test coverage fails if the code coverage is equal to threshold

2 participants