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

[feature] #2053: Add tests to the asset-related queries in private blockchain #2374

Conversation

pesterev
Copy link
Contributor

Description of the Change

Add tests to the asset-related queries in private blockchain.

Issue

Partially resolves #2053 .

Benefits

New tests.

Possible Drawbacks

None.

@github-actions github-actions bot added the iroha2-dev The re-implementation of a BFT hyperledger in RUST label Jun 19, 2022
@pesterev pesterev force-pushed the private_blockchain_permissions_tests_2 branch from fbaad7b to 0278882 Compare June 19, 2022 22:33
@codecov
Copy link

codecov bot commented Jun 19, 2022

Codecov Report

Merging #2374 (b7fc38c) into iroha2-dev (6973f71) will increase coverage by 2.45%.
The diff coverage is 72.52%.

❗ Current head b7fc38c differs from pull request most recent head 7c9dd7e. Consider uploading reports for the commit 7c9dd7e to get more accurate results

@@              Coverage Diff               @@
##           iroha2-dev    #2374      +/-   ##
==============================================
+ Coverage       65.50%   67.95%   +2.45%     
==============================================
  Files             133      140       +7     
  Lines           24697    26635    +1938     
==============================================
+ Hits            16177    18099    +1922     
- Misses           8520     8536      +16     
Impacted Files Coverage Δ
cli/derive/src/lib.rs 74.72% <ø> (ø)
cli/src/torii/mod.rs 28.88% <ø> (ø)
config/src/lib.rs 15.38% <0.00%> (+1.09%) ⬆️
core/src/lib.rs 100.00% <ø> (ø)
core/src/smartcontracts/isi/account.rs 12.30% <ø> (ø)
core/src/smartcontracts/isi/block.rs 100.00% <ø> (ø)
core/src/smartcontracts/isi/domain.rs 39.82% <ø> (ø)
core/src/smartcontracts/isi/triggers.rs 0.00% <0.00%> (ø)
core/src/smartcontracts/isi/tx.rs 25.00% <ø> (ø)
core/src/smartcontracts/isi/world.rs 9.52% <0.00%> (+0.43%) ⬆️
... and 96 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c60954e...7c9dd7e. Read the comment docs.

}

#[test]
fn find_assets_by_domain_id() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this supposed to be outside mod queries?

Copy link
Contributor

Choose a reason for hiding this comment

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

If so, I'd add an explicit mod that explains what these tests are.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, that's after the wrong rebase. Thanks, fixed.

@pesterev pesterev force-pushed the private_blockchain_permissions_tests_2 branch 2 times, most recently from 2794ef9 to 0867a4b Compare June 20, 2022 14:56
@s8sato s8sato self-assigned this Jun 21, 2022
@pesterev pesterev force-pushed the private_blockchain_permissions_tests_2 branch from 0867a4b to b7fc38c Compare June 21, 2022 08:18
@Erigara Erigara self-assigned this Jun 21, 2022
… private blockchain

Signed-off-by: Vladimir Pesterev <pesterev@pm.me>
@appetrosyan appetrosyan force-pushed the private_blockchain_permissions_tests_2 branch from b7fc38c to 7c9dd7e Compare June 21, 2022 11:17
@appetrosyan appetrosyan merged commit 28670c4 into hyperledger:iroha2-dev Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iroha2-dev The re-implementation of a BFT hyperledger in RUST
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants