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

Function test_null_empty_strings

arrow/tests/array_equal.rs:1156–1164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1154
1155#[test]
1156fn test_null_empty_strings() {
1157 let s1 = StringArray::from(vec![Some(""), None, Some("")]);
1158 let data = s1.to_data().into_builder().nulls(None).build().unwrap();
1159 let s2 = StringArray::from(data);
1160
1161 // s2 is identical to s1 except that it has no validity buffer since string1 has
1162 // nulls in it, s1 and s2 are not equal
1163 test_equal(&s1, &s2, false);
1164}
1165
1166#[test]
1167fn test_union_equal_dense() {

Callers

nothing calls this directly

Calls 5

test_equalFunction · 0.85
buildMethod · 0.45
nullsMethod · 0.45
into_builderMethod · 0.45
to_dataMethod · 0.45

Tested by

no test coverage detected