Skip to content
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

safety tests: more coverage #1714

Merged
merged 3 commits into from
Nov 10, 2023
Merged

safety tests: more coverage #1714

merged 3 commits into from
Nov 10, 2023

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Nov 10, 2023

Split from #1699

Because safety.h checks the address before calling these functions, remove unreachable sections of code in the counter/checksum getters/calculators. Converts a case to if statement since default is unreachable as well


Before/after:
image

image

@sshane sshane added car safety vehicle-specific safety code tests labels Nov 10, 2023
@sshane sshane merged commit 55946a0 into master Nov 10, 2023
9 checks passed
@sshane sshane deleted the more-coverage branch November 10, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
car safety vehicle-specific safety code tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant