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

Function test_non_null_empty_strings

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

Source from the content-addressed store, hash-verified

1143
1144#[test]
1145fn test_non_null_empty_strings() {
1146 let s1 = StringArray::from(vec![Some(""), Some(""), Some("")]);
1147 let data = s1.to_data().into_builder().nulls(None).build().unwrap();
1148 let s2 = StringArray::from(data);
1149
1150 // s2 is identical to s1 except that it has no validity buffer but since there
1151 // are no nulls, s1 and s2 are equal
1152 test_equal(&s1, &s2, true);
1153}
1154
1155#[test]
1156fn test_null_empty_strings() {

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