yiisoft / yiisoft/cache-db

Raise MSI to 100%

Open
#98 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.