-
Notifications
You must be signed in to change notification settings - Fork 122
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
[C4GT] Asset: Add tests for InvalidDigest
#369
Comments
hey @vatsa287 I would like to work on this . I have gone through the code base can you assign this to me if it is open?? |
Hey @vatsa287 ! |
We're creating a new test function asset_create_should_fail_invalid_digest. We set up the necessary variables such as creator, author, capacity, etc. We create an invalid_digest that will intentionally trigger the InvalidDigest error (e.g., an empty vector). Fixes dhiway#369
Hello @Sohajawdekar |
hello @vatsa287 can I try on this then ? |
@vatsa287 Hi ,it has come to my attention that the InvalidDigest Error hasn't been thrown as error in any function in lib.rs , do i need to create a situation where InvalidDigest is thrown in any function ? |
Description
Subtask under : cord-network/community#7
New testcase can be tested under
cargo test -p pallet-asset
after adding it in the code.Goals
InvalidDigest
for pallet/assetExpected Outcome
InvalidDigest
being returned properly in all the possible calls.Acceptance Criteria
NA
Implementation Details
Look at other test cases, and add a test case for the same.
Ex: check method
asset_create_should_succeed
which validates creation of asset.Mockups / Wireframes
NA
Product Name
CORD
Organization Name
Dhiway
Domain
Blockchain
Tech Skills Needed
Rust
Mentor(s)
@amarts @vatsa287
Complexity
[Medium]
Category
[Test]
Sub Category
[Beginner friendly]
The text was updated successfully, but these errors were encountered: