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

Function test_nonnull_array_is_null

arrow-arith/src/boolean.rs:761–770  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

759
760 #[test]
761 fn test_nonnull_array_is_null() {
762 let a: ArrayRef = Arc::new(Int32Array::from(vec![1, 2, 3, 4]));
763
764 let res = is_null(a.as_ref()).unwrap();
765
766 let expected = BooleanArray::from(vec![false, false, false, false]);
767
768 assert_eq!(expected, res);
769 assert!(res.nulls().is_none());
770 }
771
772 #[test]
773 fn test_nonnull_array_with_offset_is_null() {

Callers

nothing calls this directly

Calls 2

is_nullFunction · 0.85
as_refMethod · 0.45

Tested by

no test coverage detected