[Tile-serving] [openstreetmap/osm2pgsql] Middle refactorings and tests (#1110)
Jochen Topf
notifications at github.com
Wed Apr 8 07:01:40 UTC 2020
Various refactoring and tests for the middle code. See individual commits for details.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/1110
-- Commit Summary --
* Clean up middle test code
* Add test for adding/deleting/changing way in middle
* Add remove() function to node_ram_cache
* Clean up flat node file after middle tests
* Add default constructor for node_ram_cache for testing
* read_location() helper only needs a const reference to the cache
* Add tests for adding, changing and removing nodes in middle
* Simplify test code
* Refactor test_buffer_t in middle test
* Add asserts() in middle-pgsql to expose assumptions the code makes
-- File Changes --
M src/middle-pgsql.cpp (12)
M src/node-ram-cache.cpp (13)
M src/node-ram-cache.hpp (13)
M src/osmtypes.hpp (2)
M tests/common-cleanup.hpp (12)
M tests/test-middle.cpp (259)
M tests/test-persistent-cache.cpp (6)
M tests/test-ram-cache.cpp (41)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/1110.patch
https://github.com/openstreetmap/osm2pgsql/pull/1110.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1110
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200408/af15d74f/attachment-0001.htm>
More information about the Tile-serving
mailing list