Raise MSI to 100%
Open
Nobody has claimed this yet.
type:test
- Dominant language
- PHP
- Stars
- 13
- Forks
- 9
- Avg merge
- 1h 8m
- Merged PRs (30d)
- 1
Description
There is one mutant:
[PHP 8.5-ubuntu-latest: src/DbSchemaManager.php#L76](https://github.com/yiisoft/cache-db/pull/96/files#annotation_43056796275)
Escaped Mutant for Mutator "TrueValue":
@@ @@
*/
private function hasTable(string $table): bool
{
- return $this->db->getSchema()->hasTable($table, refresh: true);
+ return $this->db->getSchema()->hasTable($table, refresh: false);
}
}
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
Read src/DbSchemaManager.php around line 76 and inspect the linked mutant from pull request 96. Run the repository's mutation-testing workflow, add coverage that distinguishes the shown refresh values, and verify that the mutant is killed and MSI reaches 100%.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- database, testing
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100