osrm-backend/unit_tests
Michael Bell 5d468f2897
Make edge metrics strongly typed (#6421)
This change takes the existing typedefs for weight, duration and
distance, and makes them proper types, using the existing Alias
functionality.

Primarily this is to prevent bugs where the metrics are switched,
but it also adds additional documentation. For example, it now
makes it clear (despite the naming of variables) that most of the
trip algorithm is running on the duration metric.

I've not made any changes to the casts performed between metrics
and numeric types, they now just more explicit.
2022-10-28 15:16:12 +01:00
..
common Enable more clang-tidy checks. (#6270) 2022-06-30 14:32:12 +01:00
contractor Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
customizer Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
engine Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
extractor Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
fixtures Implement raster source feature to read data from third-party sources, to be used in lua profiles. 2015-09-03 22:28:18 -07:00
library Fix annotations=true handling in NodeJS bindings & libosrm (#6415) 2022-10-19 08:35:18 +02:00
mocks Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
partitioner Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
server Support snapping to multiple ways at an input location (#5953) 2022-08-27 11:36:20 +01:00
storage Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
updater Enable all unit tests (#5248) 2021-10-22 22:10:25 +01:00
util Make edge metrics strongly typed (#6421) 2022-10-28 15:16:12 +01:00
CMakeLists.txt Make osrm-routed optional (#6144) 2021-10-08 17:06:55 +01:00
contractor_tests.cpp Implement exclude flags on CH using shared core 2017-09-01 21:26:00 +02:00
customizer_tests.cpp Move customizer tests to own unit 2017-03-13 23:04:45 +00:00
engine_tests.cpp Remove license headers from project source files; global license 2016-01-04 19:06:32 +01:00
extractor_tests.cpp Remove license headers from project source files; global license 2016-01-04 19:06:32 +01:00
library_tests.cpp Library tests build system integration 2016-04-05 22:58:32 +02:00
partitioner_tests.cpp Rename namespace partition to partitioner 2018-02-02 11:07:18 +01:00
server_tests.cpp Add viaroute suport for new API 2016-04-05 22:58:32 +02:00
storage_tests.cpp First step towards reading/writing tar 2018-03-26 11:02:03 +00:00
updater_tests.cpp Refactor isThroughStreet/Intersection options (#4751) 2018-01-19 13:49:00 -05:00
util_tests.cpp Remove license headers from project source files; global license 2016-01-04 19:06:32 +01:00