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

Function test_with_hashes_empty_arrays

datafusion/common/src/hash_utils.rs:1857–1871  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1855
1856 #[test]
1857 fn test_with_hashes_empty_arrays() {
1858 let random_state = RandomState::with_seed(0);
1859
1860 // Test that passing no arrays returns an error
1861 let empty: [&ArrayRef; 0] = [];
1862 let result = with_hashes(empty, &random_state, |_hashes| Ok(()));
1863
1864 assert!(result.is_err());
1865 assert!(
1866 result
1867 .unwrap_err()
1868 .to_string()
1869 .contains("requires at least one array")
1870 );
1871 }
1872
1873 #[test]
1874 fn test_with_hashes_reentrancy() {

Callers

nothing calls this directly

Calls 1

with_hashesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…