summaryrefslogtreecommitdiff
path: root/crates/tor-basic-utils/src/rangebounds.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-basic-utils: Add unbounded range (..) test.Gabriela Moldovan2023-05-131-0/+31
| | | | Signed-off-by: Gabriela Moldovan <[email protected]>
* tor-basic-utils: Update combinatorial test to randomly choose an open or ↵Gabriela Moldovan2023-05-131-2/+12
| | | | | | closed bound. Signed-off-by: Gabriela Moldovan <[email protected]>
* tor-basic-utils: Add rangebounds test with time ranges.Gabriela Moldovan2023-05-131-0/+35
| | | | Signed-off-by: Gabriela Moldovan <[email protected]>
* tor-basic-utils: Assert witness is not part of the intersection.Gabriela Moldovan2023-05-131-0/+4
| | | | Signed-off-by: Gabriela Moldovan <[email protected]>
* tor-basic-utils: Log the ranges/intersection on assertion failure.Gabriela Moldovan2023-05-131-1/+13
| | | | Signed-off-by: Gabriela Moldovan <[email protected]>
* tor-checkable: Implement RangeBounds for TimerangeBound.Gabriela Moldovan2023-05-131-2/+2
| | | | | | | | By implementing `RangeBounds` for `TimerangeBound`, we get `RangeBoundsExt` for free. This will enable `parse_decrypt_validate` to easily compute the intersection of the `TimerangeBound`s its layers. Signed-off-by: Gabriela Moldovan <[email protected]>
* tor-basic-utils: Add a helper function to deduplicate test code.Gabriela Moldovan2023-05-131-19/+29
| | | | Signed-off-by: Gabriela Moldovan <[email protected]>
* tor-basic-utils: Add RangeBoundsExt trait.Gabriela Moldovan2023-05-131-0/+200
Signed-off-by: Gabriela Moldovan <[email protected]>