MCPcopy Create free account
hub / github.com/apache/datafusion / assert_set

Function assert_set

datafusion/physical-expr-common/src/binary_view_map.rs:534–539  ·  view source on GitHub ↗

asserts that the set contains the expected strings, in the same order

(set: ArrowBytesViewSet, expected: &[Option<&str>])

Source from the content-addressed store, hash-verified

532
533 // asserts that the set contains the expected strings, in the same order
534 fn assert_set(set: ArrowBytesViewSet, expected: &[Option<&str>]) {
535 let strings = set.into_state();
536 let strings = strings.as_string_view();
537 let state = strings.into_iter().collect::<Vec<_>>();
538 assert_eq!(state, expected);
539 }
540
541 #[test]
542 fn string_view_set_empty() {

Callers 5

string_view_set_emptyFunction · 0.70
string_view_set_one_nullFunction · 0.70
test_string_set_non_utf8Function · 0.70

Calls 2

into_stateMethod · 0.45
into_iterMethod · 0.45

Tested by 5

string_view_set_emptyFunction · 0.56
string_view_set_one_nullFunction · 0.56
test_string_set_non_utf8Function · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…