cargo mutants: missed mutants in vortex-datafusion

オープン 初心者向け
#12,628 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
77/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust

調査の方向性

vortex-datafusion/src/persistent/cache.rs、特に CacheScope::matches を読み、リンクされたミュータントレポートを調べて、どの ReaderFactory の比較が生き残るかを確認してください。この match アームを削除すると失敗するテストを見つけるか追加し、その後、関連する vortex-datafusion のテストを実行してください。テストが生き残ったミュータントを検出したら完了です。

索引モデルが issue の本文から書いたものです。

説明

The nightly run at fdb9507c04e2939724aa39c298653a8ea3fd3b49 found 1 mutants in vortex-datafusion that survive the tests. They are in code that changed during the last day.

Artifacts:

vortex-datafusion/src/persistent/cache.rs:43:13

delete match arm (Self::ReaderFactory(a), Self::ReaderFactory(b)) in CacheScope::matches

--- vortex-datafusion/src/persistent/cache.rs
+++ delete match arm (Self::ReaderFactory(a), Self::ReaderFactory(b)) in CacheScope::matches
@@ -35,20 +35,17 @@
     }
 
     pub(crate) fn matches(&self, other: &Self) -> bool {
         match (self, other) {
             (Self::ObjectStore(a), Self::ObjectStore(b)) => a
                 .upgrade()
                 .zip(b.upgrade())
                 .is_some_and(|(a, b)| Arc::ptr_eq(&a, &b)),
-            (Self::ReaderFactory(a), Self::ReaderFactory(b)) => a
-                .upgrade()
-                .zip(b.upgrade())
-                .is_some_and(|(a, b)| Arc::ptr_eq(&a, &b)),
+             /* ~ changed by cargo-mutants ~ */
             _ => false,
         }
     }
 }
 
 /// Per-file cache bounded to one entry per path, invalidated when [`ObjectGeneration`] changes.
 pub(crate) type FileCache<V> = DashMap<Path, (ObjectGeneration, V)>;
 
cargo mutants -f vortex-datafusion/src/persistent/cache.rs -F ':43:13:'
主要言語
Rust
スター
3.2k
フォーク
239
平均マージ
1日 4時間
マージ済み PR(30日)
684

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vortex-data/vortex のほかの issue

vortex-data/vortex の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。