cargo mutants: missed mutants in vortex-datafusion

未關閉 適合新手
#12,628 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
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 小時
30 天內合併 PR
684

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

vortex-data/vortex 的其他 Issue

查看 vortex-data/vortex 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。