Add unit tests to test-cli
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reading cmd/test-cli/beacon.go, engine.go, requests.go, and validator.go to identify their external dependencies and where injection is needed. Refactor the affected code for testability, add mocks and unit tests for each listed file, and run the test-cli package tests to confirm they pass.
Written by the indexing model from the issue text.
Description
Description
In order to improve the quality of test-cli pkg, it would be good to add some unit tests for:
- cmd/test-cli/beacon.go
- cmd/test-cli/engine.go
- cmd/test-cli/requests.go
- cmd/test-cli/validator.go
Unfortunately, for most of those scripts it is required to refactor the code in order to inject dependencies, adding mocks and improving testability
- Dominant language
- Go
- Stars
- 1.4k
- Forks
- 292
- PR merge metrics
- No merged PRs in 30d
Contributor guide
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 flashbots/mev-boost
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug: JSON log format breaks on registerValidator due to *http.Request field containing func() type Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
All issues in flashbots/mev-boost
Similar issues
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
microsoft/agent-framework-go#1179 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
[Bug]: OLLAMA_KEEP_ALIVE="5m" / "24h" crashes Ollama embedding and vision models with ValueError Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
infiniflow/ragflow#20223 · 1 reaction ·
-
bug needs triage pkg/translator/faro
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
open-telemetry/opentelemetry-collector-contrib#51484 · 1 comment ·