Add clang-format (#1086)

Co-authored-by: mwilsnd <mwilsnd@gmail.com>
This commit is contained in:
Bart Louwers
2023-05-01 16:57:37 +02:00
committed by GitHub
parent 403a12bd1b
commit 71f6da2722
1018 changed files with 27876 additions and 25862 deletions

View File

@@ -20,10 +20,10 @@ public:
TransformState transformState;
util::RunLoop loop;
style::Style style{fileSource, 1};
AnnotationManager annotationManager { style };
AnnotationManager annotationManager{style};
ImageManager imageManager;
GlyphManager glyphManager;
Tileset tileset { { "https://example.com" }, { 0, 22 }, "none" };
Tileset tileset{{"https://example.com"}, {0, 22}, "none"};
TileParameters tileParameters{1.0,
MapDebugOptions(),
@@ -62,15 +62,16 @@ TEST(RasterTile, onParsed) {
EXPECT_TRUE(tile.isLoaded());
EXPECT_TRUE(tile.isComplete());
// Make sure that once we've had a renderable tile and then receive erroneous data, we retain
// the previously rendered data and keep the tile renderable.
// Make sure that once we've had a renderable tile and then receive
// erroneous data, we retain the previously rendered data and keep the tile
// renderable.
tile.setError(std::make_exception_ptr(std::runtime_error("Connection offline")));
EXPECT_TRUE(tile.isRenderable());
EXPECT_TRUE(tile.isLoaded());
EXPECT_TRUE(tile.isComplete());
// Then simulate a parsing failure and make sure that we keep it renderable in this situation
// as well.
// Then simulate a parsing failure and make sure that we keep it renderable
// in this situation as well.
tile.onError(std::make_exception_ptr(std::runtime_error("Parse error")), 0);
ASSERT_TRUE(tile.isRenderable());
EXPECT_TRUE(tile.isLoaded());