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

265 audit pdm 003 test coverage #316

Merged
merged 5 commits into from
Oct 20, 2023
Merged

265 audit pdm 003 test coverage #316

merged 5 commits into from
Oct 20, 2023

Conversation

ebma
Copy link
Member

@ebma ebma commented Oct 5, 2023

This adds more test cases to the orml-currencies-allowance-extension pallet. The coverage was increased from 22% to 73.13%.
I attached the generated report in a zip file but you can reproduce the result by running the cargo tarpaulin command

cargo install cargo-tarpaulin
cargo tarpaulin --out Html --output-dir ./tarpaulin-report -p orml-currencies-allowance-extension

The coverage report will be placed in ./tarpaulin-report/tarpaulin-report.html.

Note that while #265 is also asking for test coverage of the chain extension, I decided not to include any tests for this as it seems to be very complex to test chain extensions per se. I checked Astar's repository but they also don't seem to have any tests for this.

Closes #265.

tarpaulin-report.html.zip

@ebma ebma linked an issue Oct 5, 2023 that may be closed by this pull request
@ebma ebma force-pushed the 265-audit-pdm-003-test-coverage branch from e157dff to 6bb68f3 Compare October 9, 2023 15:28
@ebma ebma marked this pull request as ready for review October 9, 2023 15:34
@ebma ebma assigned b-yap, adelarja and gianfra-t and unassigned b-yap, adelarja and gianfra-t Oct 9, 2023
@ebma ebma requested a review from a team October 9, 2023 15:35
@ebma ebma merged commit 35807d5 into main Oct 20, 2023
2 checks passed
@ebma ebma deleted the 265-audit-pdm-003-test-coverage branch October 20, 2023 14:08
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.

Audit: PDM-003 - Test Coverage
4 participants