Skip to content

ETCM-468-complement get proof service tests #926

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

Merged
merged 3 commits into from
Feb 17, 2021

Conversation

bsuieric
Copy link
Contributor

Adding some assertions for getProof service tests

Copy link
Contributor

@krzysztofpaliga-iohk krzysztofpaliga-iohk left a comment

Choose a reason for hiding this comment

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

I might be missing something. But could we please add a test like
return the proof and value for a request without storage keys
?

@bsuieric
Copy link
Contributor Author

I might be missing something. But could we please add a test like
return the proof and value for a request without storage keys
?

Good point, I pushed the test

Copy link
Contributor

@krzysztofpaliga-iohk krzysztofpaliga-iohk left a comment

Choose a reason for hiding this comment

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

looks good, did not run the test myself though

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

✅ This pull request was sent to the PullRequest network.


@bsuieric you can click here to see the review status or cancel the code review job - or - cancel by adding [!pr] to the title of the pull request.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

This looks like a reasonable elaboration of these tests. Now that they're more comprehensive, it may make sense to try to deduplicate them. Is there some reasonable notion of a correspondence between an accountProof and a context that can exist outside of any given test and that describes some feature of the domain?

Image of Eric E Eric E


Reviewed with ❤️ by PullRequest

r =>
r.proofAccount.storageProof.map(v => {
r => {
val accountProof = r.proofAccount
Copy link

Choose a reason for hiding this comment

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

Is there independent notion of equivalence between an accountProof and a context that can be pulled out and reused across these tests?

Image of Eric E Eric E

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there could be, but I would make it explicit for each test. In my opinion it makes it more readable and easier in case we change some input values in the future

@bsuieric bsuieric force-pushed the ETCM-468-complement-tests branch from 925ba1e to 93333bb Compare February 17, 2021 09:07
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

⚠️ Warning

PullRequest detected a force-push on this branch. This may have caused some information to be lost, and additional time may be required to complete review of the code. Read More

@bsuieric bsuieric merged commit 422e56c into develop Feb 17, 2021
@dzajkowski dzajkowski deleted the ETCM-468-complement-tests branch April 9, 2021 12:01
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