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

Function test_fixed_size_binary

arrow-string/src/length.rs:848–855  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

846
847 #[test]
848 fn test_fixed_size_binary() {
849 let array = FixedSizeBinaryArray::new(4, [0; 16].into(), None);
850 let result = length(&array).unwrap();
851 assert_eq!(result.as_ref(), &Int32Array::from(vec![4; 4]));
852
853 let result = bit_length(&array).unwrap();
854 assert_eq!(result.as_ref(), &Int32Array::from(vec![32; 4]));
855 }
856 #[test]
857 fn length_test_ree_string_values() {
858 use arrow_array::RunArray;

Callers

nothing calls this directly

Calls 2

lengthFunction · 0.85
bit_lengthFunction · 0.85

Tested by

no test coverage detected