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

Function test_mutable_equal

arrow-buffer/src/buffer/mutable.rs:1366–1379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1364
1365 #[test]
1366 fn test_mutable_equal() {
1367 let mut buf = MutableBuffer::new(1);
1368 let mut buf2 = MutableBuffer::new(1);
1369
1370 buf.extend_from_slice(&[0xaa]);
1371 buf2.extend_from_slice(&[0xaa, 0xbb]);
1372 assert!(buf != buf2);
1373
1374 buf.extend_from_slice(&[0xbb]);
1375 assert_eq!(buf, buf2);
1376
1377 buf2.reserve(65);
1378 assert!(buf != buf2);
1379 }
1380
1381 #[test]
1382 fn test_mutable_shrink_to_fit() {

Callers

nothing calls this directly

Calls 2

extend_from_sliceMethod · 0.80
reserveMethod · 0.45

Tested by

no test coverage detected