cargo mutants: missed mutants in vortex-sparse
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
調査の方向性
Start with encodings/sparse/src/lib.rs at SparseData::encode, around line 520, and inspect the three surviving mutant reports linked in the issue. Identify or add tests that fail when the null-count threshold comparison or its multiplication changes; run cargo mutants -f encodings/sparse/src/lib.rs -F ':520:42:' and cargo mutants -f encodings/sparse/src/lib.rs -F ':520:49:' to check them. Done when tests kill the reported mutants.
索引モデルが issue の本文から書いたものです。
説明
The nightly run at fdb9507c04e2939724aa39c298653a8ea3fd3b49 found 3 mutants in vortex-sparse that survive the tests. They are in code that changed during the last day.
Artifacts:
- mutants-0
- mutants-2
- mutants-13
- mutants-1
- mutants-3
- mutants-6
- mutants-10
- mutants-5
- mutants-4
- mutants-11
- mutants-9
- mutants-12
- mutants-15
- mutants-14
encodings/sparse/src/lib.rs:520:42
replace > with == in SparseData::encode
--- encodings/sparse/src/lib.rs
+++ replace > with == in SparseData::encode
@@ -512,17 +512,17 @@
let mask = array.validity()?.execute_mask(array.len(), ctx)?;
if mask.all_false() {
// Array is constant NULL
return Ok(
ConstantArray::new(Scalar::null(array.dtype().clone()), array.len()).into_array(),
);
} else if (fill_value.as_ref().is_some_and(Scalar::is_null) && !mask.all_true())
- || mask.false_count() as f64 > (0.9 * mask.len() as f64)
+ || mask.false_count() as f64 == /* ~ changed by cargo-mutants ~ */ (0.9 * mask.len() as f64)
{
// Array uses a null fill and has both nulls and non-null values.
// The values are stored as they are, so their validity must not stay a lazy filter
// over the input's bitmap, which may itself be compressed.
let non_null_values = array
.filter(mask.clone())?
.execute::<CanonicalValidity>(ctx)?
.0
cargo mutants -f encodings/sparse/src/lib.rs -F ':520:42:'
encodings/sparse/src/lib.rs:520:42
replace > with >= in SparseData::encode
--- encodings/sparse/src/lib.rs
+++ replace > with >= in SparseData::encode
@@ -512,17 +512,17 @@
let mask = array.validity()?.execute_mask(array.len(), ctx)?;
if mask.all_false() {
// Array is constant NULL
return Ok(
ConstantArray::new(Scalar::null(array.dtype().clone()), array.len()).into_array(),
);
} else if (fill_value.as_ref().is_some_and(Scalar::is_null) && !mask.all_true())
- || mask.false_count() as f64 > (0.9 * mask.len() as f64)
+ || mask.false_count() as f64 >= /* ~ changed by cargo-mutants ~ */ (0.9 * mask.len() as f64)
{
// Array uses a null fill and has both nulls and non-null values.
// The values are stored as they are, so their validity must not stay a lazy filter
// over the input's bitmap, which may itself be compressed.
let non_null_values = array
.filter(mask.clone())?
.execute::<CanonicalValidity>(ctx)?
.0
cargo mutants -f encodings/sparse/src/lib.rs -F ':520:42:'
encodings/sparse/src/lib.rs:520:49
replace * with + in SparseData::encode
--- encodings/sparse/src/lib.rs
+++ replace * with + in SparseData::encode
@@ -512,17 +512,17 @@
let mask = array.validity()?.execute_mask(array.len(), ctx)?;
if mask.all_false() {
// Array is constant NULL
return Ok(
ConstantArray::new(Scalar::null(array.dtype().clone()), array.len()).into_array(),
);
} else if (fill_value.as_ref().is_some_and(Scalar::is_null) && !mask.all_true())
- || mask.false_count() as f64 > (0.9 * mask.len() as f64)
+ || mask.false_count() as f64 > (0.9 + /* ~ changed by cargo-mutants ~ */ mask.len() as f64)
{
// Array uses a null fill and has both nulls and non-null values.
// The values are stored as they are, so their validity must not stay a lazy filter
// over the input's bitmap, which may itself be compressed.
let non_null_values = array
.filter(mask.clone())?
.execute::<CanonicalValidity>(ctx)?
.0
cargo mutants -f encodings/sparse/src/lib.rs -F ':520:49:'
- 主要言語
- Rust
- スター
- 3.2k
- フォーク
- 239
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 684
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vortex-data/vortex のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
vortex-data/vortex#12633 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
vortex-data/vortex#12628 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
vortex-data/vortex#12491 ·
メンテナーはふだん 1 日以内に返信
-
Fallible constructor for nested_case_when対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vortex-data/vortex#11425 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
vortex-data/vortex#12635 ·
メンテナーはふだん 1 日以内に返信
vortex-data/vortex の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
marklauter/tsong#110 ·
-
docs enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wasm-bindgen/wasm-bindgen#5503 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
area: engine bug needs milestone
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Mudcrab-Team/mudcrab#1197 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信