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

Function test_nonnull_array_is_not_null

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

Source from the content-addressed store, hash-verified

784
785 #[test]
786 fn test_nonnull_array_is_not_null() {
787 let a = Int32Array::from(vec![1, 2, 3, 4]);
788
789 let res = is_not_null(&a).unwrap();
790
791 let expected = BooleanArray::from(vec![true, true, true, true]);
792
793 assert_eq!(expected, res);
794 assert!(res.nulls().is_none());
795 }
796
797 #[test]
798 fn test_nonnull_array_with_offset_is_not_null() {

Callers

nothing calls this directly

Calls 1

is_not_nullFunction · 0.85

Tested by

no test coverage detected