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

Function test_bitwise_unary_mut_shared

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

Source from the content-addressed store, hash-verified

1326
1327 #[test]
1328 fn test_bitwise_unary_mut_shared() {
1329 let arr = BooleanArray::from(vec![true, false, true, false]);
1330 let info = PointerInfo::new(&arr);
1331 let _shared = arr.clone();
1332 let result = arr.bitwise_unary_mut(|x| !x);
1333 assert!(result.is_err());
1334
1335 let returned = result.unwrap_err();
1336 assert_eq!(returned, BooleanArray::from(vec![true, false, true, false]));
1337 info.assert_same(&returned);
1338 }
1339
1340 #[test]
1341 fn test_bitwise_unary_mut_with_nulls() {

Callers

nothing calls this directly

Calls 3

bitwise_unary_mutMethod · 0.80
assert_sameMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected