diff options
Diffstat (limited to 'test/style')
-rw-r--r-- | test/style/conversion/function.test.cpp | 2 | ||||
-rw-r--r-- | test/style/conversion/geojson_options.test.cpp | 8 | ||||
-rw-r--r-- | test/style/conversion/layer.test.cpp | 2 | ||||
-rw-r--r-- | test/style/conversion/light.test.cpp | 2 | ||||
-rw-r--r-- | test/style/conversion/stringify.test.cpp | 36 | ||||
-rw-r--r-- | test/style/filter.test.cpp | 20 | ||||
-rw-r--r-- | test/style/function/camera_function.test.cpp | 4 | ||||
-rw-r--r-- | test/style/function/composite_function.test.cpp | 2 | ||||
-rw-r--r-- | test/style/function/source_function.test.cpp | 4 | ||||
-rw-r--r-- | test/style/paint_property.test.cpp | 10 | ||||
-rw-r--r-- | test/style/source.test.cpp | 24 | ||||
-rw-r--r-- | test/style/style.test.cpp | 4 | ||||
-rw-r--r-- | test/style/style_image.test.cpp | 10 | ||||
-rw-r--r-- | test/style/style_layer.test.cpp | 14 | ||||
-rw-r--r-- | test/style/style_parser.test.cpp | 6 |
15 files changed, 74 insertions, 74 deletions
diff --git a/test/style/conversion/function.test.cpp b/test/style/conversion/function.test.cpp index 1eff94d939..e8367e5194 100644 --- a/test/style/conversion/function.test.cpp +++ b/test/style/conversion/function.test.cpp @@ -10,7 +10,7 @@ using namespace mbgl; using namespace mbgl::style; using namespace mbgl::style::conversion; -TEST(StyleConversion, Function) { +TEST(StyleConversion, Function) { // NOLINT Error error; auto parseFunction = [&](const std::string& src) { diff --git a/test/style/conversion/geojson_options.test.cpp b/test/style/conversion/geojson_options.test.cpp index e6bd984f36..fd83efe93a 100644 --- a/test/style/conversion/geojson_options.test.cpp +++ b/test/style/conversion/geojson_options.test.cpp @@ -9,7 +9,7 @@ using namespace mbgl::style; using namespace mbgl::style::conversion; -TEST(GeoJSONOptions, Basic) { +TEST(GeoJSONOptions, Basic) { // NOLINT ValueMap map; Value raw(map); Error error; @@ -17,7 +17,7 @@ TEST(GeoJSONOptions, Basic) { ASSERT_TRUE((bool) converted); } -TEST(GeoJSONOptions, ErrorHandling) { +TEST(GeoJSONOptions, ErrorHandling) { // NOLINT ValueMap map {{"maxzoom", std::string{"should not be a string"}}}; Value raw(map); Error error; @@ -25,7 +25,7 @@ TEST(GeoJSONOptions, ErrorHandling) { ASSERT_FALSE((bool) converted); } -TEST(GeoJSONOptions, RetainsDefaults) { +TEST(GeoJSONOptions, RetainsDefaults) { // NOLINT ValueMap map; Value raw(map); Error error; @@ -44,7 +44,7 @@ TEST(GeoJSONOptions, RetainsDefaults) { } -TEST(GeoJSONOptions, FullConversion) { +TEST(GeoJSONOptions, FullConversion) { // NOLINT ValueMap map { // GeoJSON-VT {"maxzoom", 1.0f}, diff --git a/test/style/conversion/layer.test.cpp b/test/style/conversion/layer.test.cpp index 8ca5ed7e2b..57bf623356 100644 --- a/test/style/conversion/layer.test.cpp +++ b/test/style/conversion/layer.test.cpp @@ -18,7 +18,7 @@ std::unique_ptr<Layer> parseLayer(const std::string& src) { return std::move(*convert<std::unique_ptr<Layer>, JSValue>(doc, error)); } -TEST(StyleConversion, LayerTransition) { +TEST(StyleConversion, LayerTransition) { // NOLINT auto layer = parseLayer(R"JSON({ "type": "background", "id": "background", diff --git a/test/style/conversion/light.test.cpp b/test/style/conversion/light.test.cpp index 28e22b3550..b66e286327 100644 --- a/test/style/conversion/light.test.cpp +++ b/test/style/conversion/light.test.cpp @@ -15,7 +15,7 @@ using namespace mbgl; using namespace mbgl::style; using namespace mbgl::style::conversion; -TEST(StyleConversion, Light) { +TEST(StyleConversion, Light) { // NOLINT Error error; auto parseLight = [&](const std::string& src) { diff --git a/test/style/conversion/stringify.test.cpp b/test/style/conversion/stringify.test.cpp index 1dae20b26b..f369bc06ab 100644 --- a/test/style/conversion/stringify.test.cpp +++ b/test/style/conversion/stringify.test.cpp @@ -20,73 +20,73 @@ std::string stringify(const T& t) { return s.GetString(); } -TEST(Stringify, NullValue) { +TEST(Stringify, NullValue) { // NOLINT ASSERT_EQ(stringify(NullValue()), "null"); } -TEST(Stringify, Boolean) { +TEST(Stringify, Boolean) { // NOLINT ASSERT_EQ(stringify(true), "true"); ASSERT_EQ(stringify(false), "false"); } -TEST(Stringify, Uint64) { +TEST(Stringify, Uint64) { // NOLINT ASSERT_EQ(stringify(uint64_t(0)), "0"); ASSERT_EQ(stringify(uint64_t(1)), "1"); } -TEST(Stringify, Int64) { +TEST(Stringify, Int64) { // NOLINT ASSERT_EQ(stringify(int64_t(0)), "0"); ASSERT_EQ(stringify(int64_t(-1)), "-1"); } -TEST(Stringify, Double) { +TEST(Stringify, Double) { // NOLINT ASSERT_EQ(stringify(0.0), "0.0"); ASSERT_EQ(stringify(10.1234), "10.1234"); } -TEST(Stringify, String) { +TEST(Stringify, String) { // NOLINT ASSERT_EQ(stringify(std::string("test")), "\"test\""); } -TEST(Stringify, Enum) { +TEST(Stringify, Enum) { // NOLINT ASSERT_EQ(stringify(VisibilityType::Visible), "\"visible\""); } -TEST(Stringify, Color) { +TEST(Stringify, Color) { // NOLINT ASSERT_EQ(stringify(Color::blue()), "\"rgba(0,0,255,1)\""); } -TEST(Stringify, Array) { +TEST(Stringify, Array) { // NOLINT ASSERT_EQ(stringify(std::array<float, 2> {{ 1, 2 }}), "[1.0,2.0]"); } -TEST(Stringify, Vector) { +TEST(Stringify, Vector) { // NOLINT ASSERT_EQ(stringify(std::vector<float> {{ 1, 2 }}), "[1.0,2.0]"); } -TEST(Stringify, Map) { +TEST(Stringify, Map) { // NOLINT ASSERT_EQ(stringify(std::unordered_map<std::string, float> {{ "a", 1 }}), "{\"a\":1.0}"); } -TEST(Stringify, Value) { +TEST(Stringify, Value) { // NOLINT ASSERT_EQ(stringify(Value(true)), "true"); ASSERT_EQ(stringify(Value(uint64_t(0))), "0"); ASSERT_EQ(stringify(Value(1.2)), "1.2"); } -TEST(Stringify, Filter) { +TEST(Stringify, Filter) { // NOLINT ASSERT_EQ(stringify(NullFilter()), "null"); ASSERT_EQ(stringify(EqualsFilter { "a", 1.0 }), "[\"==\",\"a\",1.0]"); } -TEST(Stringify, CameraFunction) { +TEST(Stringify, CameraFunction) { // NOLINT ASSERT_EQ(stringify(CameraFunction<float>(ExponentialStops<float> { {{0, 1}}, 2 })), "{\"type\":\"exponential\",\"base\":2.0,\"stops\":[[0.0,1.0]]}"); ASSERT_EQ(stringify(CameraFunction<float>(IntervalStops<float> { {{0, 1}} })), "{\"type\":\"interval\",\"stops\":[[0.0,1.0]]}"); } -TEST(Stringify, SourceFunction) { +TEST(Stringify, SourceFunction) { // NOLINT ASSERT_EQ(stringify(SourceFunction<float>("property", ExponentialStops<float> { {{0, 1}}, 2 })), "{\"property\":\"property\",\"type\":\"exponential\",\"base\":2.0,\"stops\":[[0.0,1.0]]}"); ASSERT_EQ(stringify(SourceFunction<float>("property", IntervalStops<float> { {{0, 1}} })), @@ -99,7 +99,7 @@ TEST(Stringify, SourceFunction) { "{\"property\":\"property\",\"type\":\"identity\",\"default\":0.0}"); } -TEST(Stringify, CompositeFunction) { +TEST(Stringify, CompositeFunction) { // NOLINT ASSERT_EQ(stringify(CompositeFunction<float>("property", CompositeExponentialStops<float> { { @@ -114,13 +114,13 @@ TEST(Stringify, CompositeFunction) { "[{\"zoom\":1.0,\"value\":0.0},1.0]],\"default\":0.0}"); } -TEST(Stringify, PropertyValue) { +TEST(Stringify, PropertyValue) { // NOLINT ASSERT_EQ(stringify(PropertyValue<float>(1)), "1.0"); ASSERT_EQ(stringify(PropertyValue<float>(CameraFunction<float>(ExponentialStops<float> { {{0, 1}}, 2 }))), "{\"type\":\"exponential\",\"base\":2.0,\"stops\":[[0.0,1.0]]}"); } -TEST(Stringify, Layout) { +TEST(Stringify, Layout) { // NOLINT ASSERT_EQ(stringify(SymbolLayoutProperties()), "{}"); SymbolLayoutProperties layout; diff --git a/test/style/filter.test.cpp b/test/style/filter.test.cpp index 96de125945..cba76c69c9 100644 --- a/test/style/filter.test.cpp +++ b/test/style/filter.test.cpp @@ -28,13 +28,13 @@ Feature feature(const PropertyMap& properties, const Geometry<double>& geometry return result; } -TEST(Filter, EqualsString) { +TEST(Filter, EqualsString) { // NOLINT Filter f = parse(R"(["==", "foo", "bar"])"); ASSERT_TRUE(f(feature({{ "foo", std::string("bar") }}))); ASSERT_FALSE(f(feature({{ "foo", std::string("baz") }}))); } -TEST(Filter, EqualsNumber) { +TEST(Filter, EqualsNumber) { // NOLINT Filter f = parse(R"(["==", "foo", 0])"); ASSERT_TRUE(f(feature({{ "foo", int64_t(0) }}))); ASSERT_TRUE(f(feature({{ "foo", uint64_t(0) }}))); @@ -49,20 +49,20 @@ TEST(Filter, EqualsNumber) { ASSERT_FALSE(f(feature({{}}))); } -TEST(Filter, EqualsType) { +TEST(Filter, EqualsType) { // NOLINT Filter f = parse(R"(["==", "$type", "LineString"])"); ASSERT_FALSE(f(feature({{}}, Point<double>()))); ASSERT_TRUE(f(feature({{}}, LineString<double>()))); } -TEST(Filter, InType) { +TEST(Filter, InType) { // NOLINT Filter f = parse(R"(["in", "$type", "LineString", "Polygon"])"); ASSERT_FALSE(f(feature({{}}, Point<double>()))); ASSERT_TRUE(f(feature({{}}, LineString<double>()))); ASSERT_TRUE(f(feature({{}}, Polygon<double>()))); } -TEST(Filter, Any) { +TEST(Filter, Any) { // NOLINT ASSERT_FALSE(parse("[\"any\"]")(feature({{}}))); ASSERT_TRUE(parse("[\"any\", [\"==\", \"foo\", 1]]")( feature({{ std::string("foo"), int64_t(1) }}))); @@ -72,7 +72,7 @@ TEST(Filter, Any) { feature({{ std::string("foo"), int64_t(1) }}))); } -TEST(Filter, All) { +TEST(Filter, All) { // NOLINT ASSERT_TRUE(parse("[\"all\"]")(feature({{}}))); ASSERT_TRUE(parse("[\"all\", [\"==\", \"foo\", 1]]")( feature({{ std::string("foo"), int64_t(1) }}))); @@ -82,7 +82,7 @@ TEST(Filter, All) { feature({{ std::string("foo"), int64_t(1) }}))); } -TEST(Filter, None) { +TEST(Filter, None) { // NOLINT ASSERT_TRUE(parse("[\"none\"]")(feature({{}}))); ASSERT_FALSE(parse("[\"none\", [\"==\", \"foo\", 1]]")( feature({{ std::string("foo"), int64_t(1) }}))); @@ -92,7 +92,7 @@ TEST(Filter, None) { feature({{ std::string("foo"), int64_t(1) }}))); } -TEST(Filter, Has) { +TEST(Filter, Has) { // NOLINT ASSERT_TRUE(parse("[\"has\", \"foo\"]")( feature({{ std::string("foo"), int64_t(1) }}))); ASSERT_TRUE(parse("[\"has\", \"foo\"]")( @@ -103,7 +103,7 @@ TEST(Filter, Has) { feature({{}}))); } -TEST(Filter, NotHas) { +TEST(Filter, NotHas) { // NOLINT ASSERT_FALSE(parse("[\"!has\", \"foo\"]")( feature({{ std::string("foo"), int64_t(1) }}))); ASSERT_FALSE(parse("[\"!has\", \"foo\"]")( @@ -114,7 +114,7 @@ TEST(Filter, NotHas) { feature({{}}))); } -TEST(Filter, ID) { +TEST(Filter, ID) { // NOLINT Feature feature1 { Point<double>() }; feature1.id = { uint64_t(1234) }; diff --git a/test/style/function/camera_function.test.cpp b/test/style/function/camera_function.test.cpp index 59e3f2cef3..12278b2682 100644 --- a/test/style/function/camera_function.test.cpp +++ b/test/style/function/camera_function.test.cpp @@ -17,7 +17,7 @@ bool evaluate(PropertyValue<bool> value, float zoom) { return value.evaluate(PropertyEvaluator<bool>(PropertyEvaluationParameters(zoom), false)); } -TEST(CameraFunction, Constant) { +TEST(CameraFunction, Constant) { // NOLINT EXPECT_EQ(2.0f, evaluate(PropertyValue<float>(2.0), 0)); EXPECT_EQ(3.8f, evaluate(PropertyValue<float>(3.8), 0)); EXPECT_EQ(22.0f, evaluate(PropertyValue<float>(22.0), 0)); @@ -29,7 +29,7 @@ TEST(CameraFunction, Constant) { EXPECT_EQ(22.0f, evaluate(PropertyValue<float>(22.0), 22)); } -TEST(CameraFunction, Stops) { +TEST(CameraFunction, Stops) { // NOLINT // Explicit constant slope in fringe regions. CameraFunction<float> slope_1(ExponentialStops<float> { { { 0, 1.5 }, { 6, 1.5 }, { 8, 3 }, { 22, 3 } }, 1.75}); EXPECT_EQ(1.5, evaluate(slope_1, 0)); diff --git a/test/style/function/composite_function.test.cpp b/test/style/function/composite_function.test.cpp index e0804d4b27..d42a17bf4f 100644 --- a/test/style/function/composite_function.test.cpp +++ b/test/style/function/composite_function.test.cpp @@ -12,7 +12,7 @@ static StubGeometryTileFeature oneInteger { PropertyMap {{ "property", uint64_t(1) }} }; -TEST(CompositeFunction, ZoomInterpolation) { +TEST(CompositeFunction, ZoomInterpolation) { // NOLINT EXPECT_EQ(40.0f, CompositeFunction<float>("property", CompositeExponentialStops<float>({ {0.0f, {{uint64_t(1), 24.0f}}}, {1.5f, {{uint64_t(1), 36.0f}}}, diff --git a/test/style/function/source_function.test.cpp b/test/style/function/source_function.test.cpp index 260620c8d0..d266385ba9 100644 --- a/test/style/function/source_function.test.cpp +++ b/test/style/function/source_function.test.cpp @@ -44,7 +44,7 @@ static StubGeometryTileFeature falseFeature { PropertyMap {{ "property", false }} }; -TEST(SourceFunction, Identity) { +TEST(SourceFunction, Identity) { // NOLINT EXPECT_EQ(1.0f, SourceFunction<float>("property", IdentityStops<float>(), 0.0f) .evaluate(oneInteger, 2.0f)); EXPECT_EQ(1.0f, SourceFunction<float>("property", IdentityStops<float>(), 0.0f) @@ -68,7 +68,7 @@ TEST(SourceFunction, Identity) { .evaluate(oneTwoString, zeroArray))); } -TEST(SourceFunction, Categorical) { +TEST(SourceFunction, Categorical) { // NOLINT EXPECT_EQ(1.0f, SourceFunction<float>("property", CategoricalStops<float>({{ int64_t(1), 1.0f }})) .evaluate(oneInteger, 0.0f)); EXPECT_EQ(1.0f, SourceFunction<float>("property", CategoricalStops<float>({{ int64_t(1), 1.0f }})) diff --git a/test/style/paint_property.test.cpp b/test/style/paint_property.test.cpp index fcca05f3bd..aa6a2f2a9e 100644 --- a/test/style/paint_property.test.cpp +++ b/test/style/paint_property.test.cpp @@ -43,12 +43,12 @@ PossiblyEvaluatedPropertyValue<float> evaluate(TransitioningProperty<DataDrivenP return property.evaluate(evaluator, parameters.now); } -TEST(TransitioningProperty, EvaluateDefaultValue) { +TEST(TransitioningProperty, EvaluateDefaultValue) { // NOLINT TransitioningProperty<PropertyValue<float>> property; ASSERT_EQ(0.0f, evaluate(property)); } -TEST(TransitioningProperty, EvaluateUntransitionedConstant) { +TEST(TransitioningProperty, EvaluateUntransitionedConstant) { // NOLINT TransitioningProperty<PropertyValue<float>> property { PropertyValue<float>(1.0f), TransitioningProperty<PropertyValue<float>>(), @@ -59,7 +59,7 @@ TEST(TransitioningProperty, EvaluateUntransitionedConstant) { ASSERT_EQ(1.0f, evaluate(property)); } -TEST(TransitioningProperty, EvaluateTransitionedConstantWithoutDelay) { +TEST(TransitioningProperty, EvaluateTransitionedConstantWithoutDelay) { // NOLINT TransitionOptions transition; transition.duration = { 1000ms }; @@ -82,7 +82,7 @@ TEST(TransitioningProperty, EvaluateTransitionedConstantWithoutDelay) { ASSERT_FLOAT_EQ(1.0f, evaluate(t1, 1500ms)); } -TEST(TransitioningProperty, EvaluateTransitionedConstantWithDelay) { +TEST(TransitioningProperty, EvaluateTransitionedConstantWithDelay) { // NOLINT TransitionOptions transition; transition.delay = { 1000ms }; transition.duration = { 1000ms }; @@ -108,7 +108,7 @@ TEST(TransitioningProperty, EvaluateTransitionedConstantWithDelay) { ASSERT_FLOAT_EQ(1.0f, evaluate(t1, 2500ms)); } -TEST(TransitioningProperty, EvaluateDataDrivenValue) { +TEST(TransitioningProperty, EvaluateDataDrivenValue) { // NOLINT TransitionOptions transition; transition.delay = { 1000ms }; transition.duration = { 1000ms }; diff --git a/test/style/source.test.cpp b/test/style/source.test.cpp index 0473286c8b..1b11b4904a 100644 --- a/test/style/source.test.cpp +++ b/test/style/source.test.cpp @@ -76,7 +76,7 @@ public: } }; -TEST(Source, LoadingFail) { +TEST(Source, LoadingFail) { // NOLINT SourceTest test; test.fileSource.sourceResponse = [&] (const Resource& resource) { @@ -101,7 +101,7 @@ TEST(Source, LoadingFail) { test.run(); } -TEST(Source, LoadingCorrupt) { +TEST(Source, LoadingCorrupt) { // NOLINT SourceTest test; test.fileSource.sourceResponse = [&] (const Resource& resource) { @@ -124,7 +124,7 @@ TEST(Source, LoadingCorrupt) { test.run(); } -TEST(Source, RasterTileEmpty) { +TEST(Source, RasterTileEmpty) { // NOLINT SourceTest test; test.fileSource.tileResponse = [&] (const Resource&) { @@ -155,7 +155,7 @@ TEST(Source, RasterTileEmpty) { test.run(); } -TEST(Source, VectorTileEmpty) { +TEST(Source, VectorTileEmpty) { // NOLINT SourceTest test; test.fileSource.tileResponse = [&] (const Resource&) { @@ -186,7 +186,7 @@ TEST(Source, VectorTileEmpty) { test.run(); } -TEST(Source, RasterTileFail) { +TEST(Source, RasterTileFail) { // NOLINT SourceTest test; test.fileSource.tileResponse = [&] (const Resource&) { @@ -217,7 +217,7 @@ TEST(Source, RasterTileFail) { test.run(); } -TEST(Source, VectorTileFail) { +TEST(Source, VectorTileFail) { // NOLINT SourceTest test; test.fileSource.tileResponse = [&] (const Resource&) { @@ -248,7 +248,7 @@ TEST(Source, VectorTileFail) { test.run(); } -TEST(Source, RasterTileCorrupt) { +TEST(Source, RasterTileCorrupt) { // NOLINT SourceTest test; test.fileSource.tileResponse = [&] (const Resource&) { @@ -278,7 +278,7 @@ TEST(Source, RasterTileCorrupt) { test.run(); } -TEST(Source, VectorTileCorrupt) { +TEST(Source, VectorTileCorrupt) { // NOLINT SourceTest test; test.fileSource.tileResponse = [&] (const Resource&) { @@ -312,7 +312,7 @@ TEST(Source, VectorTileCorrupt) { test.run(); } -TEST(Source, RasterTileCancel) { +TEST(Source, RasterTileCancel) { // NOLINT SourceTest test; test.fileSource.tileResponse = [&] (const Resource&) { @@ -341,7 +341,7 @@ TEST(Source, RasterTileCancel) { test.run(); } -TEST(Source, VectorTileCancel) { +TEST(Source, VectorTileCancel) { // NOLINT SourceTest test; test.fileSource.tileResponse = [&] (const Resource&) { @@ -370,7 +370,7 @@ TEST(Source, VectorTileCancel) { test.run(); } -TEST(Source, RasterTileAttribution) { +TEST(Source, RasterTileAttribution) { // NOLINT SourceTest test; std::string mapboxOSM = ("<a href='https://www.mapbox.com/about/maps/' target='_blank'>© Mapbox</a> " @@ -407,7 +407,7 @@ TEST(Source, RasterTileAttribution) { test.run(); } -TEST(Source, GeoJSonSourceUrlUpdate) { +TEST(Source, GeoJSonSourceUrlUpdate) { // NOLINT SourceTest test; test.fileSource.sourceResponse = [&] (const Resource& resource) { diff --git a/test/style/style.test.cpp b/test/style/style.test.cpp index b529abad4a..33ca02d05b 100644 --- a/test/style/style.test.cpp +++ b/test/style/style.test.cpp @@ -14,7 +14,7 @@ using namespace mbgl; using namespace mbgl::style; -TEST(Style, Properties) { +TEST(Style, Properties) { // NOLINT util::RunLoop loop; ThreadPool threadPool{ 1 }; @@ -49,7 +49,7 @@ TEST(Style, Properties) { ASSERT_EQ(0, style.getDefaultPitch()); } -TEST(Style, DuplicateSource) { +TEST(Style, DuplicateSource) { // NOLINT util::RunLoop loop; ThreadPool threadPool{ 1 }; diff --git a/test/style/style_image.test.cpp b/test/style/style_image.test.cpp index 34814bee88..43e7ed0292 100644 --- a/test/style/style_image.test.cpp +++ b/test/style/style_image.test.cpp @@ -6,7 +6,7 @@ using namespace mbgl; -TEST(StyleImage, ZeroWidth) { +TEST(StyleImage, ZeroWidth) { // NOLINT try { style::Image(PremultipliedImage({ 0, 16 }), 2.0); FAIL() << "Expected exception"; @@ -15,7 +15,7 @@ TEST(StyleImage, ZeroWidth) { } } -TEST(StyleImage, ZeroHeight) { +TEST(StyleImage, ZeroHeight) { // NOLINT try { style::Image(PremultipliedImage({ 16, 0 }), 2.0); FAIL() << "Expected exception"; @@ -24,7 +24,7 @@ TEST(StyleImage, ZeroHeight) { } } -TEST(StyleImage, ZeroRatio) { +TEST(StyleImage, ZeroRatio) { // NOLINT try { style::Image(PremultipliedImage({ 16, 16 }), 0.0); FAIL() << "Expected exception"; @@ -33,7 +33,7 @@ TEST(StyleImage, ZeroRatio) { } } -TEST(StyleImage, Retina) { +TEST(StyleImage, Retina) { // NOLINT style::Image image(PremultipliedImage({ 32, 24 }), 2.0); EXPECT_EQ(16, image.getWidth()); EXPECT_EQ(32u, image.getImage().size.width); @@ -42,7 +42,7 @@ TEST(StyleImage, Retina) { EXPECT_EQ(2, image.getPixelRatio()); } -TEST(StyleImage, FractionalRatio) { +TEST(StyleImage, FractionalRatio) { // NOLINT style::Image image(PremultipliedImage({ 20, 12 }), 1.5); EXPECT_EQ(float(20.0 / 1.5), image.getWidth()); EXPECT_EQ(20u, image.getImage().size.width); diff --git a/test/style/style_layer.test.cpp b/test/style/style_layer.test.cpp index 2a8379bf20..b0b7ebecb1 100644 --- a/test/style/style_layer.test.cpp +++ b/test/style/style_layer.test.cpp @@ -52,7 +52,7 @@ const auto duration = 1.0f; } // namespace -TEST(Layer, BackgroundProperties) { +TEST(Layer, BackgroundProperties) { // NOLINT auto layer = std::make_unique<BackgroundLayer>("background"); EXPECT_TRUE(layer->is<BackgroundLayer>()); @@ -68,7 +68,7 @@ TEST(Layer, BackgroundProperties) { EXPECT_EQ(layer->getBackgroundPattern(), pattern); } -TEST(Layer, CircleProperties) { +TEST(Layer, CircleProperties) { // NOLINT auto layer = std::make_unique<CircleLayer>("circle", "source"); EXPECT_TRUE(layer->is<CircleLayer>()); @@ -93,7 +93,7 @@ TEST(Layer, CircleProperties) { EXPECT_EQ(layer->getCircleTranslateAnchor(), translateAnchor); } -TEST(Layer, FillProperties) { +TEST(Layer, FillProperties) { // NOLINT auto layer = std::make_unique<FillLayer>("fill", "source"); EXPECT_TRUE(layer->is<FillLayer>()); @@ -121,7 +121,7 @@ TEST(Layer, FillProperties) { EXPECT_EQ(layer->getFillTranslateAnchor(), translateAnchor); } -TEST(Layer, LineProperties) { +TEST(Layer, LineProperties) { // NOLINT auto layer = std::make_unique<LineLayer>("line", "source"); EXPECT_TRUE(layer->is<LineLayer>()); @@ -172,7 +172,7 @@ TEST(Layer, LineProperties) { EXPECT_EQ(layer->getLinePattern(), pattern); } -TEST(Layer, RasterProperties) { +TEST(Layer, RasterProperties) { // NOLINT auto layer = std::make_unique<RasterLayer>("raster", "source"); EXPECT_TRUE(layer->is<RasterLayer>()); @@ -200,7 +200,7 @@ TEST(Layer, RasterProperties) { EXPECT_EQ(layer->getRasterFadeDuration(), duration); } -TEST(Layer, Observer) { +TEST(Layer, Observer) { // NOLINT auto layer = std::make_unique<LineLayer>("line", "source"); StubLayerObserver observer; layer->setObserver(&observer); @@ -257,7 +257,7 @@ TEST(Layer, Observer) { EXPECT_FALSE(layoutPropertyChanged); } -TEST(Layer, DuplicateLayer) { +TEST(Layer, DuplicateLayer) { // NOLINT util::RunLoop loop; // Setup style diff --git a/test/style/style_parser.test.cpp b/test/style/style_parser.test.cpp index 5fa81b47e9..8bdd10f9be 100644 --- a/test/style/style_parser.test.cpp +++ b/test/style/style_parser.test.cpp @@ -21,7 +21,7 @@ using Messages = std::vector<Message>; class StyleParserTest : public ::testing::TestWithParam<std::string> {}; -TEST_P(StyleParserTest, ParseStyle) { +TEST_P(StyleParserTest, ParseStyle) { // NOLINT const std::string base = std::string("test/fixtures/style_parser/") + GetParam(); rapidjson::GenericDocument<rapidjson::UTF8<>, rapidjson::CrtAllocator> infoDoc; @@ -73,7 +73,7 @@ TEST_P(StyleParserTest, ParseStyle) { } } -INSTANTIATE_TEST_CASE_P(StyleParser, StyleParserTest, ::testing::ValuesIn([] { +INSTANTIATE_TEST_CASE_P(StyleParser, StyleParserTest, ::testing::ValuesIn([] { // NOLINT std::vector<std::string> names; const std::string ending = ".info.json"; @@ -93,7 +93,7 @@ INSTANTIATE_TEST_CASE_P(StyleParser, StyleParserTest, ::testing::ValuesIn([] { return names; }())); -TEST(StyleParser, FontStacks) { +TEST(StyleParser, FontStacks) { // NOLINT style::Parser parser; parser.parse(util::read_file("test/fixtures/style_parser/font_stacks.json")); auto result = parser.fontStacks(); |