|
18 | 18 | # --- Test Data and Mocks --- |
19 | 19 |
|
20 | 20 | DEVICE_TIME_RANGE_CASES = [ |
| 21 | + # Single device: start and end should match that device's range |
21 | 22 | ([(2.0, 9.0)], 2.0, 9.0), |
| 23 | + # Two devices with different ranges: start should be min, end should be max |
22 | 24 | ([(1.0, 8.0), (0.0, 10.0)], 0.0, 10.0), |
| 25 | + # Three devices with different ranges: start should be min, end should be max |
23 | 26 | ([(0.0, 10.0), (1.0, 8.0), (2.0, 9.0)], 0.0, 10.0), |
| 27 | + # Devices with non-overlapping ranges: start should be min, end should be max |
24 | 28 | ([(0.0, 3.0), (7.0, 8.0)], 0.0, 8.0), |
| 29 | + # Devices with identical ranges: start and end should match that range |
25 | 30 | ([(1.0, 5.0), (1.0, 5.0)], 1.0, 5.0), |
| 31 | + # Large time stamps: start should be min, end should be max |
26 | 32 | ([(1e9, 1e9 + 100), (1e9 - 50, 1e9 + 50)], 1e9 - 50, 1e9 + 100), |
27 | 33 | ] |
28 | 34 |
|
|
0 commit comments