Skip to content

[added] coverage for getMerkleTreeProof#1470

Merged
tynes merged 1 commit intoethereum-optimism:developfrom
rajivpo:rajiv/message-relayer-coverage
Sep 27, 2021
Merged

[added] coverage for getMerkleTreeProof#1470
tynes merged 1 commit intoethereum-optimism:developfrom
rajivpo:rajiv/message-relayer-coverage

Conversation

@rajivpo
Copy link
Copy Markdown
Contributor

@rajivpo rajivpo commented Sep 21, 2021

Description

  • added coverage for the getMerkleTreeProof function in packages/message-relayer/relay-tx.ts

Additional context
Additional coverage increases total message-relayer package coverage from ~72% to 83%

Metadata

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Sep 21, 2021

🦋 Changeset detected

Latest commit: e504bb4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/message-relayer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 21, 2021

Codecov Report

Merging #1470 (e504bb4) into develop (3492792) will increase coverage by 0.40%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1470      +/-   ##
===========================================
+ Coverage    76.47%   76.87%   +0.40%     
===========================================
  Files           81       81              
  Lines         3018     3019       +1     
  Branches       463      463              
===========================================
+ Hits          2308     2321      +13     
+ Misses         710      698      -12     
Flag Coverage Δ
batch-submitter 60.99% <ø> (ø)
contracts 86.05% <ø> (ø)
core-utils 68.16% <ø> (ø)
data-transport-layer 37.86% <ø> (ø)
message-relayer 83.48% <100.00%> (+11.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/message-relayer/src/relay-tx.ts 82.85% <100.00%> (+11.70%) ⬆️

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 3492792...e504bb4. Read the comment docs.

@tynes
Copy link
Copy Markdown
Contributor

tynes commented Sep 21, 2021

How exactly did you generate the test vectors? If you copied them from the output of calling the function, it only really checks that the functionality doesn't change in the future. I wonder if there are standard test vectors used elsewhere in the ethereum ecosystem that we can use here

@rajivpo
Copy link
Copy Markdown
Contributor Author

rajivpo commented Sep 21, 2021

How exactly did you generate the test vectors? If you copied them from the output of calling the function, it only really checks that the functionality doesn't change in the future. I wonder if there are standard test vectors used elsewhere in the ethereum ecosystem that we can use here

Yep just got them from the output of the function (definitely hard to reason about just from looking at inputs and outputs). Will definitely look for standard test vectors.

@tynes
Copy link
Copy Markdown
Contributor

tynes commented Sep 22, 2021

If there isn't anything obviously out there then this PR is fine to merge as is

@rajivpo
Copy link
Copy Markdown
Contributor Author

rajivpo commented Sep 27, 2021

not seeing anything super obvious from google searches but will definitely submit a new PR if I am able to find something 😄

@tynes
Copy link
Copy Markdown
Contributor

tynes commented Sep 27, 2021

Thank you for this PR!

@tynes tynes merged commit e563f95 into ethereum-optimism:develop Sep 27, 2021
theochap pushed a commit that referenced this pull request Dec 10, 2025
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