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

Function test_generic_binary_equal

arrow/tests/array_equal.rs:277–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275}
276
277fn test_generic_binary_equal<OffsetSize: OffsetSizeTrait>() {
278 let cases = binary_cases();
279
280 for (lhs, rhs, expected) in cases {
281 let lhs = lhs
282 .iter()
283 .map(|x| x.as_deref().map(|x| x.as_bytes()))
284 .collect();
285 let rhs = rhs
286 .iter()
287 .map(|x| x.as_deref().map(|x| x.as_bytes()))
288 .collect();
289 let lhs = GenericBinaryArray::<OffsetSize>::from_opt_vec(lhs);
290 let rhs = GenericBinaryArray::<OffsetSize>::from_opt_vec(rhs);
291 test_equal(&lhs, &rhs, expected);
292 }
293}
294
295#[test]
296fn test_binary_equal() {

Callers

nothing calls this directly

Calls 5

binary_casesFunction · 0.85
test_equalFunction · 0.85
collectMethod · 0.80
iterMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected