(
env: &mut Environment,
expr: &GroupComparisonExpr,
titles: &[String],
object: &Vec<Box<dyn Value>>,
)
| 370 | } |
| 371 | |
| 372 | fn evaluate_group_comparison( |
| 373 | env: &mut Environment, |
| 374 | expr: &GroupComparisonExpr, |
| 375 | titles: &[String], |
| 376 | object: &Vec<Box<dyn Value>>, |
| 377 | ) -> Result<Box<dyn Value>, String> { |
| 378 | let lhs = evaluate_expression(env, &expr.left, titles, object)?; |
| 379 | let rhs = evaluate_expression(env, &expr.right, titles, object)?; |
| 380 | match expr.comparison_operator { |
| 381 | ComparisonOperator::Greater => lhs.group_gt_op(&rhs, &expr.group_operator), |
| 382 | ComparisonOperator::GreaterEqual => lhs.group_gte_op(&rhs, &expr.group_operator), |
| 383 | ComparisonOperator::Less => lhs.group_lt_op(&rhs, &expr.group_operator), |
| 384 | ComparisonOperator::LessEqual => lhs.group_lte_op(&rhs, &expr.group_operator), |
| 385 | ComparisonOperator::Equal => lhs.group_eq_op(&rhs, &expr.group_operator), |
| 386 | ComparisonOperator::NotEqual => lhs.group_bang_eq_op(&rhs, &expr.group_operator), |
| 387 | ComparisonOperator::NullSafeEqual => lhs.group_null_safe_eq_op(&rhs, &expr.group_operator), |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | fn evaluate_contains( |
| 392 | env: &mut Environment, |
no test coverage detected
searching dependent graphs…