dwave-examples / dwave-examples/quantum-blockchain
Expand Test Coverage
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1
- Forks
- 1
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 2
Description
Currently the testing suite for the repo covers many of the key classes and methods, but far from all. Classes that need the most attention are
- Miner
- TrialManager
- SpiralPlotter
- ScoreTreeBranch
- ProofOfWorkProtocol
These are all complicated classes with many things that can go wrong that currently have no direct test coverage. Test coverage for some other classes could also stand to be improved, especially BlockScoreTree, which is very easy to unwittingly break when modifying it.
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.
Research direction
Start by locating the existing Python test suite and the implementations of Miner, TrialManager, SpiralPlotter, ScoreTreeBranch, ProofOfWorkProtocol, and BlockScoreTree. Add direct tests for the listed classes, prioritizing the failure cases they expose, and consider the work done when meaningful coverage exists for those classes and the suite passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- blockchain, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100