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

Function test_bitwise_unary_mut_sliced

arrow-array/src/array/boolean_array.rs:1535–1540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1533
1534 #[test]
1535 fn test_bitwise_unary_mut_sliced() {
1536 // Slicing shares the buffer, so _mut must return Err.
1537 let arr = BooleanArray::from(vec![true, false, true, true, false]);
1538 let sliced = arr.slice(1, 3);
1539 assert!(sliced.bitwise_unary_mut(|x| !x).is_err());
1540 }
1541
1542 #[test]
1543 fn test_bitwise_unary_mut_or_clone_sliced() {

Callers

nothing calls this directly

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected