1515
1616namespace {
1717
18- void write_and_read_location (node_persistent_cache *cache, osmid_t id, double x ,
19- double y)
18+ void write_and_read_location (node_persistent_cache_t *cache, osmid_t id,
19+ double x, double y)
2020{
2121 cache->set (id, osmium::Location{x, y});
2222 REQUIRE (osmium::Location (x, y) == cache->get (id));
2323}
2424
25- void read_location (node_persistent_cache const &cache, osmid_t id, double x,
25+ void read_location (node_persistent_cache_t const &cache, osmid_t id, double x,
2626 double y)
2727{
2828 REQUIRE (osmium::Location (x, y) == cache.get (id));
2929}
3030
31- void delete_location (node_persistent_cache *cache, osmid_t id)
31+ void delete_location (node_persistent_cache_t *cache, osmid_t id)
3232{
3333 cache->set (id, osmium::Location{});
3434 REQUIRE (osmium::Location{} == cache->get (id));
@@ -43,7 +43,7 @@ TEST_CASE("Persistent cache", "[NoDB]")
4343
4444 // create a new cache
4545 {
46- node_persistent_cache cache{flat_node_file, true , false };
46+ node_persistent_cache_t cache{flat_node_file, true , false };
4747
4848 // write in order
4949 write_and_read_location (&cache, 10 , 10.01 , -45.3 );
@@ -66,7 +66,7 @@ TEST_CASE("Persistent cache", "[NoDB]")
6666
6767 // reopen the cache
6868 {
69- node_persistent_cache cache{flat_node_file, false , false };
69+ node_persistent_cache_t cache{flat_node_file, false , false };
7070
7171 // read all previously written locations
7272 read_location (cache, 10 , 10.01 , -45.3 );
@@ -115,5 +115,5 @@ TEST_CASE("Opening non-existent persistent cache should fail in append mode",
115115 " test_middle_flat.nonexistent.flat.nodes.bin" ;
116116 testing::cleanup::file_t const flatnode_cleaner{flat_node_file};
117117
118- REQUIRE_THROWS (node_persistent_cache (flat_node_file, false , false ));
118+ REQUIRE_THROWS (node_persistent_cache_t (flat_node_file, false , false ));
119119}
0 commit comments