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

Increase test coverage for src/sentences/utils.rs #130

Merged
merged 6 commits into from
Sep 22, 2024

Conversation

trkohler
Copy link
Contributor

connect: #25

@trkohler trkohler marked this pull request as ready for review August 24, 2024 18:13
Copy link

codecov bot commented Sep 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.93%. Comparing base (5675768) to head (4a9bb7b).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #130   +/-   ##
=======================================
  Coverage   77.93%   77.93%           
=======================================
  Files          37       37           
  Lines        1405     1405           
=======================================
  Hits         1095     1095           
  Misses        310      310           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 332 to 335
let result = parse_number_in_range::<u8>("9", 10, 20);
assert!(result.is_err());
let result = parse_number_in_range::<u8>("21", 10, 20);
assert!(result.is_err());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be best to validate the returned error.
Right now the function might be returning a different that the out of range error.

src/sentences/utils.rs Show resolved Hide resolved
@elpiel elpiel merged commit f0881e1 into AeroRust:main Sep 22, 2024
15 checks passed
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.

2 participants