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 摘要。