cargo mutants: missed mutants in vortex-functions
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Start with the four surviving mutants identified in vortex-functions/src/like/mod.rs and vortex-functions/src/pruning/mod.rs, then inspect the linked mutation artifacts to see the affected behavior. Add or adjust tests that fail for each mutant and pass with the original code; the work is done when those mutants are killed by the test suite.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The nightly run at fdb9507c04e2939724aa39c298653a8ea3fd3b49 found 4 mutants in vortex-functions 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
vortex-functions/src/like/mod.rs:53:5
replace initialize with ()
--- vortex-functions/src/like/mod.rs
+++ replace initialize with ()
@@ -45,20 +45,17 @@
use vortex_error::VortexResult;
use vortex_error::vortex_bail;
use vortex_error::vortex_err;
use vortex_session::VortexSession;
use vortex_session::registry::CachedId;
/// Registers [`Like`] and its rule for dictionary-encoded arrays.
pub(crate) fn initialize(session: &VortexSession) {
- session.register_scalar_fn(Like);
- session
- .kernels()
- .register_reduce_parent_rule(Like, Dict, const { &LikeReduceAdaptor(Dict) });
+ () /* ~ changed by cargo-mutants ~ */
}
/// Options for SQL LIKE function
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct LikeOptions {
pub negated: bool,
pub case_insensitive: bool,
}
cargo mutants -f vortex-functions/src/like/mod.rs -F ':53:5:'
vortex-functions/src/pruning/mod.rs:306:8
delete ! in list_contains_stat_compare_mode
--- vortex-functions/src/pruning/mod.rs
+++ delete ! in list_contains_stat_compare_mode
@@ -298,17 +298,17 @@
}
/// Stat comparison mode for [`list_contains_falsify`], or `None` if total-order bounds are unsound.
fn list_contains_stat_compare_mode(mode: CompareMode, needle_dtype: &DType) -> Option<CompareMode> {
let mode = mode.for_dtype(needle_dtype);
if mode.is_total_order() {
return Some(CompareMode::TOTAL_ORDER);
}
- if !needle_dtype.is_float() {
+ if /* ~ changed by cargo-mutants ~ */needle_dtype.is_float() {
// Total-order bounds on nested/extension float types do not refine coarser float orders.
return None;
}
match mode.float_order() {
FloatOrder::TotalOrder => Some(CompareMode::TOTAL_ORDER),
// Non-NaN guards exclude NaNs in `needle`, so `ZerosEqual` matches signed-zero equality
// while keeping bitwise NaN order for `non_null_bounds`.
FloatOrder::ZerosEqual | FloatOrder::Canonical | FloatOrder::Ieee754 => {
cargo mutants -f vortex-functions/src/pruning/mod.rs -F ':306:8:'
vortex-functions/src/pruning/mod.rs:311:9
delete match arm FloatOrder::TotalOrder in list_contains_stat_compare_mode
--- vortex-functions/src/pruning/mod.rs
+++ delete match arm FloatOrder::TotalOrder in list_contains_stat_compare_mode
@@ -303,17 +303,17 @@
if mode.is_total_order() {
return Some(CompareMode::TOTAL_ORDER);
}
if !needle_dtype.is_float() {
// Total-order bounds on nested/extension float types do not refine coarser float orders.
return None;
}
match mode.float_order() {
- FloatOrder::TotalOrder => Some(CompareMode::TOTAL_ORDER),
+ /* ~ changed by cargo-mutants ~ */
// Non-NaN guards exclude NaNs in `needle`, so `ZerosEqual` matches signed-zero equality
// while keeping bitwise NaN order for `non_null_bounds`.
FloatOrder::ZerosEqual | FloatOrder::Canonical | FloatOrder::Ieee754 => {
Some(CompareMode::new(FloatOrder::ZerosEqual))
}
_ => None,
}
}
cargo mutants -f vortex-functions/src/pruning/mod.rs -F ':311:9:'
vortex-functions/src/pruning/mod.rs:314:9
delete match arm FloatOrder::ZerosEqual | FloatOrder::Canonical | FloatOrder::Ieee754 in list_contains_stat_compare_mode
--- vortex-functions/src/pruning/mod.rs
+++ delete match arm FloatOrder::ZerosEqual | FloatOrder::Canonical | FloatOrder::Ieee754 in list_contains_stat_compare_mode
@@ -306,19 +306,17 @@
if !needle_dtype.is_float() {
// Total-order bounds on nested/extension float types do not refine coarser float orders.
return None;
}
match mode.float_order() {
FloatOrder::TotalOrder => Some(CompareMode::TOTAL_ORDER),
// Non-NaN guards exclude NaNs in `needle`, so `ZerosEqual` matches signed-zero equality
// while keeping bitwise NaN order for `non_null_bounds`.
- FloatOrder::ZerosEqual | FloatOrder::Canonical | FloatOrder::Ieee754 => {
- Some(CompareMode::new(FloatOrder::ZerosEqual))
- }
+ /* ~ changed by cargo-mutants ~ */
_ => None,
}
}
fn list_contains_falsify<P: NonNanProof>(
expr: &BoundExpression,
session: &VortexSession,
) -> VortexResult<Option<BoundExpression>> {
cargo mutants -f vortex-functions/src/pruning/mod.rs -F ':314:9:'
- Ngôn ngữ chính
- Rust
- Star
- 3.2k
- Fork
- 239
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 684
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của vortex-data/vortex
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vortex-data/vortex#12633 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
vortex-data/vortex#12628 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
vortex-data/vortex#12491 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fallible constructor for nested_case_whenCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vortex-data/vortex#11425 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
vortex-data/vortex#12635 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của vortex-data/vortex
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
marklauter/tsong#110 ·
-
docs enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: engine bug needs milestone
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Mudcrab-Team/mudcrab#1197 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày