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

Function assert_set

datafusion/physical-expr-common/src/binary_map.rs:740–745  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

738
739 // asserts that the set contains the expected strings, in the same order
740 fn assert_set<O: OffsetSizeTrait>(set: ArrowBytesSet<O>, expected: &[Option<&str>]) {
741 let strings = set.into_state();
742 let strings = strings.as_string::<O>();
743 let state = strings.into_iter().collect::<Vec<_>>();
744 assert_eq!(state, expected);
745 }
746
747 // Test use of binary output type
748 #[test]

Callers 5

string_set_emptyFunction · 0.70
string_set_one_nullFunction · 0.70
string_set_many_nullFunction · 0.70
test_string_set_basicFunction · 0.70
test_string_set_non_utf8Function · 0.70

Calls 2

into_stateMethod · 0.45
into_iterMethod · 0.45

Tested by 5

string_set_emptyFunction · 0.56
string_set_one_nullFunction · 0.56
string_set_many_nullFunction · 0.56
test_string_set_basicFunction · 0.56
test_string_set_non_utf8Function · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…