()
| 207 | |
| 208 | |
| 209 | def test_map_overlap_errors(): |
| 210 | # Non-integer |
| 211 | with pytest.raises(ValueError): |
| 212 | ddf.map_overlap(shifted_sum, 0.5, 3, 0, 2, c=2) |
| 213 | |
| 214 | # Negative |
| 215 | with pytest.raises(ValueError): |
| 216 | ddf.map_overlap(shifted_sum, 0, -5, 0, 2, c=2) |
| 217 | |
| 218 | # Partition size < window size |
| 219 | with pytest.raises(NotImplementedError): |
| 220 | ddf.map_overlap(shifted_sum, 0, 100, 0, 100, c=2).compute() |
| 221 | |
| 222 | # Timedelta offset with non-datetime |
| 223 | with pytest.raises(TypeError): |
| 224 | ddf.map_overlap(shifted_sum, pd.Timedelta("1s"), pd.Timedelta("1s"), 0, 2, c=2) |
| 225 | |
| 226 | # String timedelta offset with non-datetime |
| 227 | with pytest.raises(TypeError): |
| 228 | ddf.map_overlap(shifted_sum, "1s", "1s", 0, 2, c=2) |
| 229 | |
| 230 | |
| 231 | def test_map_overlap_provide_meta(): |
nothing calls this directly
no test coverage detected