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

Improving tests and documentation in memory module #137

Merged
merged 4 commits into from
Oct 11, 2024
Merged

Conversation

mnemonikr
Copy link
Owner

Improving tests and documentation in memory module

@mnemonikr
Copy link
Owner Author

mnemonikr commented Oct 11, 2024

All lines are practically covered. The only uncovered line is testing the conversion failure from usize to u64. This can theoretically fail but is machine-dependent.

The region coverage is substantially lower due to regions that are defined in the test code but not exercised (e.g. calls with ? that are expected to succeed). Unfortunately the test code is measured, and can't avoid this until rust-lang/rust#84605 is resolved.

Filename                      Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
src/mem.rs                        426                42    90.14%          73                 1    98.63%         782                 3    99.62%           0                 0         -

@mnemonikr mnemonikr merged commit 0b3b876 into main Oct 11, 2024
1 check passed
@mnemonikr mnemonikr deleted the mem-tests branch October 11, 2024 05:47
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.

1 participant