diff options
Diffstat (limited to 'test/algorithm')
-rw-r--r-- | test/algorithm/covered_by_children.test.cpp | 4 | ||||
-rw-r--r-- | test/algorithm/generate_clip_ids.test.cpp | 18 | ||||
-rw-r--r-- | test/algorithm/update_renderables.test.cpp | 32 |
3 files changed, 27 insertions, 27 deletions
diff --git a/test/algorithm/covered_by_children.test.cpp b/test/algorithm/covered_by_children.test.cpp index b2a219bf29..c9c8bb3331 100644 --- a/test/algorithm/covered_by_children.test.cpp +++ b/test/algorithm/covered_by_children.test.cpp @@ -8,7 +8,7 @@ using namespace mbgl; using List = std::map<UnwrappedTileID, bool>; -TEST(CoveredByChildren, NotCovered) { +TEST(CoveredByChildren, NotCovered) { // NOLINT const List list1; EXPECT_FALSE(algorithm::coveredByChildren(UnwrappedTileID{ 0, 0, 0 }, list1)); @@ -33,7 +33,7 @@ TEST(CoveredByChildren, NotCovered) { EXPECT_FALSE(algorithm::coveredByChildren(UnwrappedTileID{ 0, 0, 0 }, list3)); } -TEST(CoveredByChildren, Covered) { +TEST(CoveredByChildren, Covered) { // NOLINT const List list1{ { UnwrappedTileID{ 0, 0, 0 }, true }, // all four child tiles diff --git a/test/algorithm/generate_clip_ids.test.cpp b/test/algorithm/generate_clip_ids.test.cpp index 8ca0191b3a..0133eaf332 100644 --- a/test/algorithm/generate_clip_ids.test.cpp +++ b/test/algorithm/generate_clip_ids.test.cpp @@ -48,7 +48,7 @@ namespace { } // end namespace -TEST(GenerateClipIDs, ParentAndFourChildren) { +TEST(GenerateClipIDs, ParentAndFourChildren) { // NOLINT std::map<UnwrappedTileID, Renderable> renderables{ { UnwrappedTileID{ 0, 0, 0 }, Renderable{ {} } }, // All four covering children @@ -81,7 +81,7 @@ TEST(GenerateClipIDs, ParentAndFourChildren) { stencils); } -TEST(GenerateClipIDs, ParentAndFourChildrenNegative) { +TEST(GenerateClipIDs, ParentAndFourChildrenNegative) { // NOLINT std::map<UnwrappedTileID, Renderable> renderables{ { UnwrappedTileID{ 1, -2, 0 }, Renderable{ {} } }, { UnwrappedTileID{ 1, -2, 1 }, Renderable{ {} } }, @@ -112,7 +112,7 @@ TEST(GenerateClipIDs, ParentAndFourChildrenNegative) { stencils); } -TEST(GenerateClipIDs, NegativeParentAndMissingLevel) { +TEST(GenerateClipIDs, NegativeParentAndMissingLevel) { // NOLINT std::map<UnwrappedTileID, Renderable> renderables{ { UnwrappedTileID{ 1, -1, 0 }, Renderable{ {} } }, { UnwrappedTileID{ 2, -1, 0 }, Renderable{ {} } }, @@ -143,7 +143,7 @@ TEST(GenerateClipIDs, NegativeParentAndMissingLevel) { stencils); } -TEST(GenerateClipIDs, SevenOnSameLevel) { +TEST(GenerateClipIDs, SevenOnSameLevel) { // NOLINT std::map<UnwrappedTileID, Renderable> renderables{ // first column { UnwrappedTileID{ 2, 0, 0 }, Renderable{ {} } }, @@ -183,7 +183,7 @@ TEST(GenerateClipIDs, SevenOnSameLevel) { stencils); } -TEST(GenerateClipIDs, MultipleLevels) { +TEST(GenerateClipIDs, MultipleLevels) { // NOLINT std::map<UnwrappedTileID, Renderable> renderables{ { UnwrappedTileID{ 2, 0, 0 }, Renderable{ {} } }, // begin subtiles of (2/0/0) @@ -239,7 +239,7 @@ TEST(GenerateClipIDs, MultipleLevels) { stencils); } -TEST(GenerateClipIDs, Bug206) { +TEST(GenerateClipIDs, Bug206) { // NOLINT std::map<UnwrappedTileID, Renderable> renderables{ { UnwrappedTileID{ 10, 162, 395 }, Renderable{ {} } }, { UnwrappedTileID{ 10, 162, 396 }, Renderable{ {} } }, @@ -291,7 +291,7 @@ TEST(GenerateClipIDs, Bug206) { stencils); } -TEST(GenerateClipIDs, MultipleSources) { +TEST(GenerateClipIDs, MultipleSources) { // NOLINT std::map<UnwrappedTileID, Renderable> renderables1{ { UnwrappedTileID{ 0, 0, 0 }, Renderable{ {} } }, { UnwrappedTileID{ 1, 1, 1 }, Renderable{ {} } }, @@ -355,7 +355,7 @@ TEST(GenerateClipIDs, MultipleSources) { stencils); } -TEST(GenerateClipIDs, DuplicateIDs) { +TEST(GenerateClipIDs, DuplicateIDs) { // NOLINT std::map<UnwrappedTileID, Renderable> renderables1{ { UnwrappedTileID{ 2, 0, 0 }, Renderable{ {} } }, { UnwrappedTileID{ 2, 0, 1 }, Renderable{ {} } }, @@ -388,7 +388,7 @@ TEST(GenerateClipIDs, DuplicateIDs) { stencils); } -TEST(GenerateClipIDs, SecondSourceHasParentOfFirstSource) { +TEST(GenerateClipIDs, SecondSourceHasParentOfFirstSource) { // NOLINT std::map<UnwrappedTileID, Renderable> renderables1{ { UnwrappedTileID{ 1, 0, 0 }, Renderable{ {} } }, }; diff --git a/test/algorithm/update_renderables.test.cpp b/test/algorithm/update_renderables.test.cpp index af90d262de..7bcb9ca7c6 100644 --- a/test/algorithm/update_renderables.test.cpp +++ b/test/algorithm/update_renderables.test.cpp @@ -112,7 +112,7 @@ auto renderTileFn(ActionLog& log) { }; } -TEST(UpdateRenderables, SingleTile) { +TEST(UpdateRenderables, SingleTile) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -256,7 +256,7 @@ TEST(UpdateRenderables, SingleTile) { log); } -TEST(UpdateRenderables, UseParentTile) { +TEST(UpdateRenderables, UseParentTile) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -302,7 +302,7 @@ TEST(UpdateRenderables, UseParentTile) { log); } -TEST(UpdateRenderables, DontUseWrongParentTile) { +TEST(UpdateRenderables, DontUseWrongParentTile) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -379,7 +379,7 @@ TEST(UpdateRenderables, DontUseWrongParentTile) { log); } -TEST(UpdateRenderables, UseParentTileWhenChildNotReady) { +TEST(UpdateRenderables, UseParentTileWhenChildNotReady) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -424,7 +424,7 @@ TEST(UpdateRenderables, UseParentTileWhenChildNotReady) { log); } -TEST(UpdateRenderables, UseOverlappingParentTile) { +TEST(UpdateRenderables, UseOverlappingParentTile) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -462,7 +462,7 @@ TEST(UpdateRenderables, UseOverlappingParentTile) { log); } -TEST(UpdateRenderables, UseChildTiles) { +TEST(UpdateRenderables, UseChildTiles) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -496,7 +496,7 @@ TEST(UpdateRenderables, UseChildTiles) { log); } -TEST(UpdateRenderables, PreferChildTiles) { +TEST(UpdateRenderables, PreferChildTiles) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -605,7 +605,7 @@ TEST(UpdateRenderables, PreferChildTiles) { log); } -TEST(UpdateRenderables, UseParentAndChildTiles) { +TEST(UpdateRenderables, UseParentAndChildTiles) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -658,7 +658,7 @@ TEST(UpdateRenderables, UseParentAndChildTiles) { log); } -TEST(UpdateRenderables, DontUseTilesLowerThanMinzoom) { +TEST(UpdateRenderables, DontUseTilesLowerThanMinzoom) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -687,7 +687,7 @@ TEST(UpdateRenderables, DontUseTilesLowerThanMinzoom) { log); } -TEST(UpdateRenderables, UseOverzoomedTileAfterMaxzoom) { +TEST(UpdateRenderables, UseOverzoomedTileAfterMaxzoom) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -791,7 +791,7 @@ TEST(UpdateRenderables, UseOverzoomedTileAfterMaxzoom) { log); } -TEST(UpdateRenderables, AscendToNonOverzoomedTiles) { +TEST(UpdateRenderables, AscendToNonOverzoomedTiles) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -871,7 +871,7 @@ TEST(UpdateRenderables, AscendToNonOverzoomedTiles) { log); } -TEST(UpdateRenderables, DoNotAscendMultipleTimesIfNotFound) { +TEST(UpdateRenderables, DoNotAscendMultipleTimesIfNotFound) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -944,7 +944,7 @@ TEST(UpdateRenderables, DoNotAscendMultipleTimesIfNotFound) { log); } -TEST(UpdateRenderables, DontRetainUnusedNonIdealTiles) { +TEST(UpdateRenderables, DontRetainUnusedNonIdealTiles) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -973,7 +973,7 @@ TEST(UpdateRenderables, DontRetainUnusedNonIdealTiles) { log); } -TEST(UpdateRenderables, WrappedTiles) { +TEST(UpdateRenderables, WrappedTiles) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -1035,7 +1035,7 @@ TEST(UpdateRenderables, WrappedTiles) { log); } -TEST(UpdateRenderables, RepeatedRenderWithMissingOptionals) { +TEST(UpdateRenderables, RepeatedRenderWithMissingOptionals) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); @@ -1227,7 +1227,7 @@ TEST(UpdateRenderables, RepeatedRenderWithMissingOptionals) { log); } -TEST(UpdateRenderables, LoadRequiredIfIdealTileCantBeFound) { +TEST(UpdateRenderables, LoadRequiredIfIdealTileCantBeFound) { // NOLINT ActionLog log; MockSource source; auto getTileData = getTileDataFn(log, source.dataTiles); |