Improve unit test coverage
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- testing-qa
Research direction
Start by locating the existing unit tests covering typedSignatureHash, personal_sign, encryption, custom types, and array inputs. Run the current unit test suite to establish the baseline, then add focused cases for the unchecked scenarios in the issue. Done means each listed gap has coverage and the full suite passes.
Written by the indexing model from the issue text.
Description
The unit test coverage was recently dramatically expanded, but there are still a few gaps.
- We are missing
typedSignatureHashtests for array inputs. - We aren't testing negative number inputs passed in as strings.
- We aren't testing numbers encoded as strings of odd v.s. even length.
-
personal_signisn't thoroughly tested in general (e.g. we only test '0x'-prefixed hex string inputs). - Encryption isn't thoroughly tested (e.g. #75 )
- We don't have tests for naming collisions between custom types and Solidity types.
- We don't have any tests for arrays of a set size. We only have dynamic length array tests.
- We don't have tests for arrays of arrays.
- We don't have tests for custom types that behave like arrays.
- Dominant language
- TypeScript
- Stars
- 584
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MetaMask/eth-sig-util
-
team-wallet-framework
Difficulty 1/5 Under an hour Newbie friendliness 50/100
MetaMask/eth-sig-util#353 ·
-
tsconfig: Disable `strictNullChecks`, enable `strict`Possibly taken @itzKLAUS claimed this 28 days ago. Openteam-wallet-framework
Difficulty 1/5 Under an hour Newbie friendliness 55/100
MetaMask/eth-sig-util#352 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
MetaMask/eth-sig-util#328 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
MetaMask/eth-sig-util#304 · 4 comments · 4 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
MetaMask/eth-sig-util#303 ·
All issues in MetaMask/eth-sig-util
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
CopilotKit/openmuse#215 ·
Maintainers usually reply within 3 days
-
b:minor bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
software-mansion/argent#1698 ·
Maintainers usually reply within 1 day
-
e2e-failure ready-to-code
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 comment ·
Maintainers usually reply within 1 day