chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
20 stars 13 forks source link

path: add tests and documentation for node/waypoint operations #842

Closed tahini closed 5 months ago

tahini commented 5 months ago

fixes #835

This adds exhaustive unit tests for the waypoints insert/update/delete and nodes insert/delete operations. It also adds some check of indexes before doing the operation.

After these addition, the coverage of the Path.ts file increased as follows:

% Stmts: 27.16 --> 58.6 % Branch: 34.75 --> 49.7 % Funcs: 33.77 --> 49.33 % Lines: 27.08 --> 58.94