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 document functions for path's building #835

Closed tahini closed 5 months ago

tahini commented 5 months ago

While refactoring the map for deck.gl, a lot of the insertion logic that was in the map events now does not need to exist. But this highlighted problems in the Path's functions for managing waypoints and nodes.

Proper tests can help identify those problems and solve them.

tahini commented 5 months ago

Ftr, current coverage of the Path.ts file:

% Stmts: 27.16 % Branch: 34.75 % Funcs: 33.77 % Lines: 27.08