MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_equal

Function test_equal

arrow/tests/array_equal.rs:205–220  ·  view source on GitHub ↗
(lhs: &dyn Array, rhs: &dyn Array, expected: bool)

Source from the content-addressed store, hash-verified

203
204#[allow(clippy::eq_op)]
205fn test_equal(lhs: &dyn Array, rhs: &dyn Array, expected: bool) {
206 // equality is symmetric
207 assert_eq!(lhs, lhs);
208 assert_eq!(rhs, rhs);
209
210 match expected {
211 true => {
212 assert_eq!(lhs, rhs);
213 assert_eq!(rhs, lhs);
214 }
215 false => {
216 assert_ne!(lhs, rhs);
217 assert_ne!(rhs, lhs);
218 }
219 }
220}
221
222type OptionString = Option<String>;
223

Callers 15

test_null_equalFunction · 0.85
test_boolean_equalFunction · 0.85
test_boolean_equal_nullsFunction · 0.85
test_primitiveFunction · 0.85
test_primitive_sliceFunction · 0.85
test_string_view_equalFunction · 0.85
test_string_offsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected