(
compare: &Comparison,
actual: &Vec<DataValue>,
expected: &Vec<DataValue>,
)
| 50 | } |
| 51 | |
| 52 | fn compare_results( |
| 53 | compare: &Comparison, |
| 54 | actual: &Vec<DataValue>, |
| 55 | expected: &Vec<DataValue>, |
| 56 | ) -> bool { |
| 57 | let are_equal = actual.len() == expected.len() |
| 58 | && actual |
| 59 | .into_iter() |
| 60 | .zip(expected) |
| 61 | .all(|(a, b)| a.bitwise_eq(b)); |
| 62 | |
| 63 | match compare { |
| 64 | Comparison::Equals => are_equal, |
| 65 | Comparison::NotEquals => !are_equal, |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | impl Display for RunCommand { |
nothing calls this directly
no test coverage detected