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

DaoSign milestone 2 delivery #1216

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

ramilexe
Copy link
Contributor

Milestone Delivery Checklist

  • The milestone-delivery-template.md has been copied and updated.
  • This pull request is being made by the same account as the accepted application.
  • I have disclosed any and all sources of reused code in the submitted repositories and have done my due diligence to meet its license requirements.
  • In case of acceptance, invoices must be submitted and payments will be transferred to the Polkadot AssetHub and/or fiat account provided in the application.
  • The delivery is according to the Guidelines for Milestone Deliverables.

Link to the application pull request: w3f/Grants-Program#1770

@ramilexe ramilexe mentioned this pull request Oct 25, 2024
10 tasks
@keeganquigley keeganquigley self-assigned this Oct 28, 2024
@keeganquigley
Copy link
Contributor

Thanks for the delivery @ramilexe much appreciated. I have started my evaluation.

With only two unit tests, the code coverage is currently very low:

----------|---------|----------|---------|---------|-------------------
File      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
----------|---------|----------|---------|---------|-------------------
All files |      25 |     5.26 |   15.38 |   26.41 |                   
 index.ts |      25 |     5.26 |   15.38 |   26.41 | 27-120,138-157    
----------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        4.769 s, estimated 5 s
Ran all test suites.

Are you able to write some additional tests to better cover all the functions? 80% or more is ideal.

Examples

numberToArray:
Test with positive and negative numbers.
Test with zero.
Test with large numbers.
Test with numbers that exceed the maximum safe integer.

sendTransaction:
Test successful transaction with valid parameters.
Test failed transaction with invalid parameters.
Test transaction with different gas limits and storage deposit limits.
Test transaction with different error scenarios (e.g., insufficient funds, network errors).

storeProofOfAuthority, storeProofOfSignature, storeProofOfAgreement:
Test successful storage of proofs with valid parameters.
Test failed storage with invalid parameters.
Test error handling for network issues or contract errors.

@ramilexe
Copy link
Contributor Author

Hi @keeganquigley
We definitely will do it, thank you for feedback

@ramilexe
Copy link
Contributor Author

ramilexe commented Nov 1, 2024

Hi @keeganquigley
we enhanced unit tests, please check. Test coverage now more than 92%

image

@keeganquigley
Copy link
Contributor

Thanks @ramilexe I appreciate the fixes. I have accepted the milestone, here is my final evaluation.

@keeganquigley keeganquigley merged commit 687b67a into w3f:master Nov 5, 2024
5 of 6 checks passed
Copy link

github-actions bot commented Nov 5, 2024

🪙 Please fill out the invoice form in order to initiate the payment process. Thank you!

@RouvenP
Copy link

RouvenP commented Nov 25, 2024

hi @ramilexe we sent the payment last Friday

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.

3 participants