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

chore: calldata utils improvements & tests #1221

Merged
merged 31 commits into from
Sep 11, 2024

Conversation

lukasaric
Copy link
Contributor

@lukasaric lukasaric commented Sep 6, 2024

Motivation and Resolution

Resolves #1220

Test coverage within ./src/utils/calldata:

  • - cairo
  • - validate
  • - tuple
  • - byteArray
  • - enum foler ( CairoResult, CairoOption & CairoCustomEnum)
  • - parser folder
  • - formatter

Added ABI factories within mocks

RPC version (if applicable)

...

Usage related changes

  • Change 1.
  • ...

Development related changes

  • Change 1.
  • ...

Checklist:

  • Performed a self-review of the code
  • Rebased to the last commit of the target branch (or merged it into my branch)
  • Linked the issues which this PR resolves
  • Documented the changes in code (API docs will be generated automatically)
  • Updated the tests
  • All tests are passing

@lukasaric lukasaric marked this pull request as draft September 6, 2024 06:37
@ivpavici ivpavici marked this pull request as ready for review September 6, 2024 12:27
@ivpavici ivpavici marked this pull request as draft September 6, 2024 12:32
@lukasaric lukasaric marked this pull request as ready for review September 9, 2024 15:20
__tests__/utils/calldata/parser/parser.test.ts Outdated Show resolved Hide resolved
__tests__/utils/calldata/validate.test.ts Outdated Show resolved Hide resolved
__tests__/utils/calldata/validate.test.ts Show resolved Hide resolved
__tests__/utils/calldata/validate.test.ts Outdated Show resolved Hide resolved
__tests__/utils/calldata/validate.test.ts Outdated Show resolved Hide resolved
src/utils/calldata/parser/index.ts Show resolved Hide resolved
src/utils/calldata/validate.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@tabaktoni tabaktoni left a comment

Choose a reason for hiding this comment

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

In general LGTM, just move abi.ts back to test, as mocks are non-refatoring element of tests.

__mocks__/factories/abi.ts Outdated Show resolved Hide resolved
src/utils/calldata/enum/CairoCustomEnum.ts Show resolved Hide resolved
@tabaktoni tabaktoni self-requested a review September 11, 2024 13:40
@ivpavici ivpavici merged commit b4198bd into starknet-io:develop Sep 11, 2024
3 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.

utils calldata tests coverage
5 participants