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

test: add reader test coverage #429

Merged
merged 33 commits into from
Jan 16, 2025

Conversation

maximopalopoli
Copy link
Contributor

@maximopalopoli maximopalopoli commented Jan 10, 2025

What Changed?

This PR adds more tests that increases the test coverage of chainio/clients/elcontracts/reader_test.go, in a second PR there will be more coverage. Note: To execute some tests you'll need to remake the bindings (run make bindings).

The functions now covered are:

  • GetStakerShares
  • GetDelegatedOperator
  • GetCurrentClaimableDistributionRoot
  • GetRootIndexFromHash
  • GetCumulativeClaimed
  • CheckClaim

Note: This PR has some functionalities implemented in this other, so it would be good to merge that one before this one.

Reviewer Checklist

  • Code is well-documented
  • Code adheres to Go naming conventions
  • Code deprecates any old functionality before removing it

@maximopalopoli maximopalopoli marked this pull request as ready for review January 13, 2025 21:41
@maximopalopoli maximopalopoli marked this pull request as draft January 13, 2025 21:53
@maximopalopoli maximopalopoli marked this pull request as ready for review January 15, 2025 13:21
chainio/clients/elcontracts/reader_test.go Outdated Show resolved Hide resolved
chainio/clients/elcontracts/reader_test.go Outdated Show resolved Hide resolved
chainio/clients/elcontracts/reader_test.go Outdated Show resolved Hide resolved
@damiramirez
Copy link
Contributor

LGTM

@MegaRedHand MegaRedHand added this pull request to the merge queue Jan 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 16, 2025
@MegaRedHand MegaRedHand added this pull request to the merge queue Jan 16, 2025
Merged via the queue into Layr-Labs:dev with commit fda56ad Jan 16, 2025
4 checks passed
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.

4 participants