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

Function test_nullable_array_is_null

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

Source from the content-addressed store, hash-verified

809
810 #[test]
811 fn test_nullable_array_is_null() {
812 let a = Int32Array::from(vec![Some(1), None, Some(3), None]);
813
814 let res = is_null(&a).unwrap();
815
816 let expected = BooleanArray::from(vec![false, true, false, true]);
817
818 assert_eq!(expected, res);
819 assert!(res.nulls().is_none());
820 }
821
822 #[test]
823 fn test_nullable_array_with_offset_is_null() {

Callers

nothing calls this directly

Calls 1

is_nullFunction · 0.85

Tested by

no test coverage detected