()
| 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() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…