cargo mutants: missed mutants in vortex-python
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 58/100
Rechercherichtung
Start with vortex-python/src/expr/mod.rs and inspect the listed surviving mutants around change_time_unit, date_to_timestamp, and parse_temporal_time_unit; read the linked nightly run artifacts to see each mutation. Add or strengthen tests that fail when these behaviors are changed, then rerun the focused cargo mutants commands shown for the affected lines. Done means the reported mutants are killed by tests.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
The nightly run at fdb9507c04e2939724aa39c298653a8ea3fd3b49 found 23 mutants in vortex-python 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-python/src/expr/mod.rs:1553:9
delete match arm "exact" in change_time_unit
--- vortex-python/src/expr/mod.rs
+++ delete match arm "exact" in change_time_unit
@@ -1545,17 +1545,17 @@
///
/// The unit accepts "ns", "us", "ms", "s", or "days". Rounding defaults to "exact" and also
/// accepts "toward_zero", "floor", and "nearest_ties_away_from_zero".
#[pyfunction]
#[pyo3(signature = (child, unit, rounding = "exact"))]
pub fn change_time_unit(child: PyIntoExpr, unit: &str, rounding: &str) -> PyResult<PyExpr> {
let unit = parse_temporal_time_unit(unit)?;
let rounding = match rounding {
- "exact" => TemporalRounding::Exact,
+ /* ~ changed by cargo-mutants ~ */
"toward_zero" => TemporalRounding::TowardZero,
"floor" => TemporalRounding::Floor,
"nearest_ties_away_from_zero" => TemporalRounding::NearestTiesAwayFromZero,
_ => {
return Err(PyValueError::new_err(format!(
"Expected rounding 'exact', 'toward_zero', 'floor', or 'nearest_ties_away_from_zero', got '{rounding}'"
)));
}
cargo mutants -f vortex-python/src/expr/mod.rs -F ':1553:9:'
vortex-python/src/expr/mod.rs:1554:9
delete match arm "toward_zero" in change_time_unit
--- vortex-python/src/expr/mod.rs
+++ delete match arm "toward_zero" in change_time_unit
@@ -1546,17 +1546,17 @@
/// The unit accepts "ns", "us", "ms", "s", or "days". Rounding defaults to "exact" and also
/// accepts "toward_zero", "floor", and "nearest_ties_away_from_zero".
#[pyfunction]
#[pyo3(signature = (child, unit, rounding = "exact"))]
pub fn change_time_unit(child: PyIntoExpr, unit: &str, rounding: &str) -> PyResult<PyExpr> {
let unit = parse_temporal_time_unit(unit)?;
let rounding = match rounding {
"exact" => TemporalRounding::Exact,
- "toward_zero" => TemporalRounding::TowardZero,
+ /* ~ changed by cargo-mutants ~ */
"floor" => TemporalRounding::Floor,
"nearest_ties_away_from_zero" => TemporalRounding::NearestTiesAwayFromZero,
_ => {
return Err(PyValueError::new_err(format!(
"Expected rounding 'exact', 'toward_zero', 'floor', or 'nearest_ties_away_from_zero', got '{rounding}'"
)));
}
};
cargo mutants -f vortex-python/src/expr/mod.rs -F ':1554:9:'
vortex-python/src/expr/mod.rs:1555:9
delete match arm "floor" in change_time_unit
--- vortex-python/src/expr/mod.rs
+++ delete match arm "floor" in change_time_unit
@@ -1547,17 +1547,17 @@
/// accepts "toward_zero", "floor", and "nearest_ties_away_from_zero".
#[pyfunction]
#[pyo3(signature = (child, unit, rounding = "exact"))]
pub fn change_time_unit(child: PyIntoExpr, unit: &str, rounding: &str) -> PyResult<PyExpr> {
let unit = parse_temporal_time_unit(unit)?;
let rounding = match rounding {
"exact" => TemporalRounding::Exact,
"toward_zero" => TemporalRounding::TowardZero,
- "floor" => TemporalRounding::Floor,
+ /* ~ changed by cargo-mutants ~ */
"nearest_ties_away_from_zero" => TemporalRounding::NearestTiesAwayFromZero,
_ => {
return Err(PyValueError::new_err(format!(
"Expected rounding 'exact', 'toward_zero', 'floor', or 'nearest_ties_away_from_zero', got '{rounding}'"
)));
}
};
cargo mutants -f vortex-python/src/expr/mod.rs -F ':1555:9:'
vortex-python/src/expr/mod.rs:1556:9
delete match arm "nearest_ties_away_from_zero" in change_time_unit
--- vortex-python/src/expr/mod.rs
+++ delete match arm "nearest_ties_away_from_zero" in change_time_unit
@@ -1548,17 +1548,17 @@
#[pyfunction]
#[pyo3(signature = (child, unit, rounding = "exact"))]
pub fn change_time_unit(child: PyIntoExpr, unit: &str, rounding: &str) -> PyResult<PyExpr> {
let unit = parse_temporal_time_unit(unit)?;
let rounding = match rounding {
"exact" => TemporalRounding::Exact,
"toward_zero" => TemporalRounding::TowardZero,
"floor" => TemporalRounding::Floor,
- "nearest_ties_away_from_zero" => TemporalRounding::NearestTiesAwayFromZero,
+ /* ~ changed by cargo-mutants ~ */
_ => {
return Err(PyValueError::new_err(format!(
"Expected rounding 'exact', 'toward_zero', 'floor', or 'nearest_ties_away_from_zero', got '{rounding}'"
)));
}
};
Ok(PyExpr {
cargo mutants -f vortex-python/src/expr/mod.rs -F ':1556:9:'
vortex-python/src/expr/mod.rs:1575:13
replace == with != in date_to_timestamp
--- vortex-python/src/expr/mod.rs
+++ replace == with != in date_to_timestamp
@@ -1567,17 +1567,17 @@
}
/// Convert a date expression to an unzoned timestamp at the start of each day.
///
/// The unit accepts "ns", "us", "ms", or "s".
#[pyfunction]
pub fn date_to_timestamp(child: PyIntoExpr, unit: &str) -> PyResult<PyExpr> {
let unit = parse_temporal_time_unit(unit)?;
- if unit == TimeUnit::Days {
+ if unit != /* ~ changed by cargo-mutants ~ */ TimeUnit::Days {
return Err(PyValueError::new_err(
"Expected date_to_timestamp unit 'ns', 'us', 'ms', or 's', got 'days'",
));
}
Ok(PyExpr {
inner: expr::date_to_timestamp(child.into_inner(), unit),
})
cargo mutants -f vortex-python/src/expr/mod.rs -F ':1575:13:'
vortex-python/src/expr/mod.rs:1588:9
delete match arm "ns" in parse_temporal_time_unit
--- vortex-python/src/expr/mod.rs
+++ delete match arm "ns" in parse_temporal_time_unit
@@ -1580,17 +1580,17 @@
Ok(PyExpr {
inner: expr::date_to_timestamp(child.into_inner(), unit),
})
}
fn parse_temporal_time_unit(unit: &str) -> PyResult<TimeUnit> {
match unit {
- "ns" => Ok(TimeUnit::Nanoseconds),
+ /* ~ changed by cargo-mutants ~ */
"us" => Ok(TimeUnit::Microseconds),
"ms" => Ok(TimeUnit::Milliseconds),
"s" => Ok(TimeUnit::Seconds),
"days" => Ok(TimeUnit::Days),
_ => Err(PyValueError::new_err(format!(
"Expected unit 'ns', 'us', 'ms', 's', or 'days', got '{unit}'"
))),
}
cargo mutants -f vortex-python/src/expr/mod.rs -F ':1588:9:'
vortex-python/src/expr/mod.rs:1589:9
delete match arm "us" in parse_temporal_time_unit
--- vortex-python/src/expr/mod.rs
+++ delete match arm "us" in parse_temporal_time_unit
@@ -1581,17 +1581,17 @@
Ok(PyExpr {
inner: expr::date_to_timestamp(child.into_inner(), unit),
})
}
fn parse_temporal_time_unit(unit: &str) -> PyResult<TimeUnit> {
match unit {
"ns" => Ok(TimeUnit::Nanoseconds),
- "us" => Ok(TimeUnit::Microseconds),
+ /* ~ changed by cargo-mutants ~ */
"ms" => Ok(TimeUnit::Milliseconds),
"s" => Ok(TimeUnit::Seconds),
"days" => Ok(TimeUnit::Days),
_ => Err(PyValueError::new_err(format!(
"Expected unit 'ns', 'us', 'ms', 's', or 'days', got '{unit}'"
))),
}
}
cargo mutants -f vortex-python/src/expr/mod.rs -F ':1589:9:'
vortex-python/src/expr/mod.rs:1590:9
delete match arm "ms" in parse_temporal_time_unit
--- vortex-python/src/expr/mod.rs
+++ delete match arm "ms" in parse_temporal_time_unit
@@ -1582,16 +1582,16 @@
inner: expr::date_to_timestamp(child.into_inner(), unit),
})
}
fn parse_temporal_time_unit(unit: &str) -> PyResult<TimeUnit> {
match unit {
"ns" => Ok(TimeUnit::Nanoseconds),
"us" => Ok(TimeUnit::Microseconds),
- "ms" => Ok(TimeUnit::Milliseconds),
+ /* ~ changed by cargo-mutants ~ */
"s" => Ok(TimeUnit::Seconds),
"days" => Ok(TimeUnit::Days),
_ => Err(PyValueError::new_err(format!(
"Expected unit 'ns', 'us', 'ms', 's', or 'days', got '{unit}'"
))),
}
}
cargo mutants -f vortex-python/src/expr/mod.rs -F ':1590:9:'
vortex-python/src/expr/mod.rs:1591:9
delete match arm "s" in parse_temporal_time_unit
--- vortex-python/src/expr/mod.rs
+++ delete match arm "s" in parse_temporal_time_unit
@@ -1583,15 +1583,15 @@
})
}
fn parse_temporal_time_unit(unit: &str) -> PyResult<TimeUnit> {
match unit {
"ns" => Ok(TimeUnit::Nanoseconds),
"us" => Ok(TimeUnit::Microseconds),
"ms" => Ok(TimeUnit::Milliseconds),
- "s" => Ok(TimeUnit::Seconds),
+ /* ~ changed by cargo-mutants ~ */
"days" => Ok(TimeUnit::Days),
_ => Err(PyValueError::new_err(format!(
"Expected unit 'ns', 'us', 'ms', 's', or 'days', got '{unit}'"
))),
}
}
cargo mutants -f vortex-python/src/expr/mod.rs -F ':1591:9:'
vortex-python/src/expr/mod.rs:1592:9
delete match arm "days" in parse_temporal_time_unit
--- vortex-python/src/expr/mod.rs
+++ delete match arm "days" in parse_temporal_time_unit
@@ -1584,14 +1584,14 @@
}
fn parse_temporal_time_unit(unit: &str) -> PyResult<TimeUnit> {
match unit {
"ns" => Ok(TimeUnit::Nanoseconds),
"us" => Ok(TimeUnit::Microseconds),
"ms" => Ok(TimeUnit::Milliseconds),
"s" => Ok(TimeUnit::Seconds),
- "days" => Ok(TimeUnit::Days),
+ /* ~ changed by cargo-mutants ~ */
_ => Err(PyValueError::new_err(format!(
"Expected unit 'ns', 'us', 'ms', 's', or 'days', got '{unit}'"
))),
}
}
cargo mutants -f vortex-python/src/expr/mod.rs -F ':1592:9:'
vortex-python/src/scalar/factory.rs:161:46
replace < with == in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace < with == in convert_temporal_scalar
@@ -153,17 +153,17 @@
};
if scalar.dtype().eq_ignore_nullability(dtype) {
return Ok(None);
}
let source_unit = source.time_unit();
let target_unit = target.time_unit();
- let finer = target_unit.nanos_per_unit() < source_unit.nanos_per_unit();
+ let finer = target_unit.nanos_per_unit() == /* ~ changed by cargo-mutants ~ */ source_unit.nanos_per_unit();
let operation = match (&source, &target) {
(
TemporalMetadata::Timestamp(_, source_zone),
TemporalMetadata::Timestamp(_, target_zone),
) if finer && source_zone == target_zone => Some(expr::change_time_unit(
root(),
target_unit,
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':161:46:'
vortex-python/src/scalar/factory.rs:161:46
replace < with > in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace < with > in convert_temporal_scalar
@@ -153,17 +153,17 @@
};
if scalar.dtype().eq_ignore_nullability(dtype) {
return Ok(None);
}
let source_unit = source.time_unit();
let target_unit = target.time_unit();
- let finer = target_unit.nanos_per_unit() < source_unit.nanos_per_unit();
+ let finer = target_unit.nanos_per_unit() > /* ~ changed by cargo-mutants ~ */ source_unit.nanos_per_unit();
let operation = match (&source, &target) {
(
TemporalMetadata::Timestamp(_, source_zone),
TemporalMetadata::Timestamp(_, target_zone),
) if finer && source_zone == target_zone => Some(expr::change_time_unit(
root(),
target_unit,
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':161:46:'
vortex-python/src/scalar/factory.rs:161:46
replace < with <= in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace < with <= in convert_temporal_scalar
@@ -153,17 +153,17 @@
};
if scalar.dtype().eq_ignore_nullability(dtype) {
return Ok(None);
}
let source_unit = source.time_unit();
let target_unit = target.time_unit();
- let finer = target_unit.nanos_per_unit() < source_unit.nanos_per_unit();
+ let finer = target_unit.nanos_per_unit() <= /* ~ changed by cargo-mutants ~ */ source_unit.nanos_per_unit();
let operation = match (&source, &target) {
(
TemporalMetadata::Timestamp(_, source_zone),
TemporalMetadata::Timestamp(_, target_zone),
) if finer && source_zone == target_zone => Some(expr::change_time_unit(
root(),
target_unit,
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':161:46:'
vortex-python/src/scalar/factory.rs:186:9
delete match arm (TemporalMetadata::Date(_), TemporalMetadata::Timestamp(_, None)) in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ delete match arm (TemporalMetadata::Date(_), TemporalMetadata::Timestamp(_, None)) in convert_temporal_scalar
@@ -178,19 +178,17 @@
(
TemporalMetadata::Date(TimeUnit::Days),
TemporalMetadata::Date(TimeUnit::Milliseconds),
) => Some(expr::change_time_unit(
root(),
TimeUnit::Milliseconds,
TemporalRounding::Exact,
)),
- (TemporalMetadata::Date(_), TemporalMetadata::Timestamp(_, None)) => {
- Some(expr::date_to_timestamp(root(), target_unit))
- }
+ /* ~ changed by cargo-mutants ~ */
_ => None,
};
let Some(operation) = operation else {
return Err(PyValueError::new_err(format!(
"Expected a supported temporal dtype hint conversion from {}, got {dtype}",
scalar.dtype(),
))
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':186:9:'
vortex-python/src/scalar/factory.rs:178:9
delete match arm (TemporalMetadata::Date(TimeUnit::Days), TemporalMetadata::Date(TimeUnit::Milliseconds),) in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ delete match arm (TemporalMetadata::Date(TimeUnit::Days), TemporalMetadata::Date(TimeUnit::Milliseconds),) in convert_temporal_scalar
@@ -170,24 +170,17 @@
TemporalRounding::Exact,
)),
(TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if finer => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if finer => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
- (
- TemporalMetadata::Date(TimeUnit::Days),
- TemporalMetadata::Date(TimeUnit::Milliseconds),
- ) => Some(expr::change_time_unit(
- root(),
- TimeUnit::Milliseconds,
- TemporalRounding::Exact,
- )),
+ /* ~ changed by cargo-mutants ~ */
(TemporalMetadata::Date(_), TemporalMetadata::Timestamp(_, None)) => {
Some(expr::date_to_timestamp(root(), target_unit))
}
_ => None,
};
let Some(operation) = operation else {
return Err(PyValueError::new_err(format!(
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':178:9:'
vortex-python/src/scalar/factory.rs:167:14
replace match guard finer && source_zone == target_zone with true in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace match guard finer && source_zone == target_zone with true in convert_temporal_scalar
@@ -159,17 +159,17 @@
let source_unit = source.time_unit();
let target_unit = target.time_unit();
let finer = target_unit.nanos_per_unit() < source_unit.nanos_per_unit();
let operation = match (&source, &target) {
(
TemporalMetadata::Timestamp(_, source_zone),
TemporalMetadata::Timestamp(_, target_zone),
- ) if finer && source_zone == target_zone => Some(expr::change_time_unit(
+ ) if true /* ~ changed by cargo-mutants ~ */ => Some(expr::change_time_unit(
root(),
target_unit,
TemporalRounding::Exact,
)),
(TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if finer => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if finer => Some(
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':167:14:'
vortex-python/src/scalar/factory.rs:167:14
replace match guard finer && source_zone == target_zone with false in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace match guard finer && source_zone == target_zone with false in convert_temporal_scalar
@@ -159,17 +159,17 @@
let source_unit = source.time_unit();
let target_unit = target.time_unit();
let finer = target_unit.nanos_per_unit() < source_unit.nanos_per_unit();
let operation = match (&source, &target) {
(
TemporalMetadata::Timestamp(_, source_zone),
TemporalMetadata::Timestamp(_, target_zone),
- ) if finer && source_zone == target_zone => Some(expr::change_time_unit(
+ ) if false /* ~ changed by cargo-mutants ~ */ => Some(expr::change_time_unit(
root(),
target_unit,
TemporalRounding::Exact,
)),
(TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if finer => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if finer => Some(
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':167:14:'
vortex-python/src/scalar/factory.rs:172:75
replace match guard finer with true in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace match guard finer with true in convert_temporal_scalar
@@ -164,17 +164,17 @@
(
TemporalMetadata::Timestamp(_, source_zone),
TemporalMetadata::Timestamp(_, target_zone),
) if finer && source_zone == target_zone => Some(expr::change_time_unit(
root(),
target_unit,
TemporalRounding::Exact,
)),
- (TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if finer => Some(
+ (TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if true /* ~ changed by cargo-mutants ~ */ => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if finer => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(
TemporalMetadata::Date(TimeUnit::Days),
TemporalMetadata::Date(TimeUnit::Milliseconds),
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':172:75:'
vortex-python/src/scalar/factory.rs:172:75
replace match guard finer with false in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace match guard finer with false in convert_temporal_scalar
@@ -164,17 +164,17 @@
(
TemporalMetadata::Timestamp(_, source_zone),
TemporalMetadata::Timestamp(_, target_zone),
) if finer && source_zone == target_zone => Some(expr::change_time_unit(
root(),
target_unit,
TemporalRounding::Exact,
)),
- (TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if finer => Some(
+ (TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if false /* ~ changed by cargo-mutants ~ */ => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if finer => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(
TemporalMetadata::Date(TimeUnit::Days),
TemporalMetadata::Date(TimeUnit::Milliseconds),
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':172:75:'
vortex-python/src/scalar/factory.rs:175:67
replace match guard finer with true in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace match guard finer with true in convert_temporal_scalar
@@ -167,17 +167,17 @@
) if finer && source_zone == target_zone => Some(expr::change_time_unit(
root(),
target_unit,
TemporalRounding::Exact,
)),
(TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if finer => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
- (TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if finer => Some(
+ (TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if true /* ~ changed by cargo-mutants ~ */ => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(
TemporalMetadata::Date(TimeUnit::Days),
TemporalMetadata::Date(TimeUnit::Milliseconds),
) => Some(expr::change_time_unit(
root(),
TimeUnit::Milliseconds,
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':175:67:'
vortex-python/src/scalar/factory.rs:175:67
replace match guard finer with false in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace match guard finer with false in convert_temporal_scalar
@@ -167,17 +167,17 @@
) if finer && source_zone == target_zone => Some(expr::change_time_unit(
root(),
target_unit,
TemporalRounding::Exact,
)),
(TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if finer => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
- (TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if finer => Some(
+ (TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if false /* ~ changed by cargo-mutants ~ */ => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(
TemporalMetadata::Date(TimeUnit::Days),
TemporalMetadata::Date(TimeUnit::Milliseconds),
) => Some(expr::change_time_unit(
root(),
TimeUnit::Milliseconds,
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':175:67:'
vortex-python/src/scalar/factory.rs:167:20
replace && with || in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace && with || in convert_temporal_scalar
@@ -159,17 +159,17 @@
let source_unit = source.time_unit();
let target_unit = target.time_unit();
let finer = target_unit.nanos_per_unit() < source_unit.nanos_per_unit();
let operation = match (&source, &target) {
(
TemporalMetadata::Timestamp(_, source_zone),
TemporalMetadata::Timestamp(_, target_zone),
- ) if finer && source_zone == target_zone => Some(expr::change_time_unit(
+ ) if finer || /* ~ changed by cargo-mutants ~ */ source_zone == target_zone => Some(expr::change_time_unit(
root(),
target_unit,
TemporalRounding::Exact,
)),
(TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if finer => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if finer => Some(
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':167:20:'
vortex-python/src/scalar/factory.rs:167:35
replace == with != in convert_temporal_scalar
--- vortex-python/src/scalar/factory.rs
+++ replace == with != in convert_temporal_scalar
@@ -159,17 +159,17 @@
let source_unit = source.time_unit();
let target_unit = target.time_unit();
let finer = target_unit.nanos_per_unit() < source_unit.nanos_per_unit();
let operation = match (&source, &target) {
(
TemporalMetadata::Timestamp(_, source_zone),
TemporalMetadata::Timestamp(_, target_zone),
- ) if finer && source_zone == target_zone => Some(expr::change_time_unit(
+ ) if finer && source_zone != /* ~ changed by cargo-mutants ~ */ target_zone => Some(expr::change_time_unit(
root(),
target_unit,
TemporalRounding::Exact,
)),
(TemporalMetadata::Duration(_), TemporalMetadata::Duration(_)) if finer => Some(
expr::change_time_unit(root(), target_unit, TemporalRounding::Exact),
),
(TemporalMetadata::Time(_), TemporalMetadata::Time(_)) if finer => Some(
cargo mutants -f vortex-python/src/scalar/factory.rs -F ':167:35:'
- Vorherrschende Sprache
- Rust
- Sterne
- 3.2k
- Forks
- 239
- Ø Merge
- 1 T. 4 Std.
- Gemergte PRs (30 T.)
- 684
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus vortex-data/vortex
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
vortex-data/vortex#12633 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
vortex-data/vortex#12628 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
vortex-data/vortex#12491 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Fallible constructor for nested_case_whenEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
vortex-data/vortex#11425 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 67/100
vortex-data/vortex#12635 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in vortex-data/vortex
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
marklauter/tsong#110 ·
-
docs enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
marketing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
area: engine bug needs milestone
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Mudcrab-Team/mudcrab#1197 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag