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

Function check_gc

arrow-array/src/array/byte_view_array.rs:1372–1380  ·  view source on GitHub ↗
(to_test: &StringViewArray)

Source from the content-addressed store, hash-verified

1370 assert!(array.buffers.len() > 1);
1371
1372 fn check_gc(to_test: &StringViewArray) {
1373 let gc = to_test.gc();
1374 assert_ne!(to_test.data_buffers().len(), gc.data_buffers().len());
1375
1376 to_test.iter().zip(gc.iter()).for_each(|(a, b)| {
1377 assert_eq!(a, b);
1378 });
1379 assert_eq!(to_test.len(), gc.len());
1380 }
1381
1382 check_gc(&array);
1383 check_gc(&array.slice(1, 3));

Callers 1

test_gcFunction · 0.85

Calls 3

gcMethod · 0.80
zipMethod · 0.80
iterMethod · 0.45

Tested by 1

test_gcFunction · 0.68