From: azv Date: Fri, 1 Mar 2019 07:56:56 +0000 (+0300) Subject: Exclude GDML plugin and related from the coverage report. Improve coverage quality... X-Git-Tag: HighLevelObjectsHierarchy X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f9a48a6cf5d206bf7e8dab1922ffc2e3014259aa;p=modules%2Fshaper.git Exclude GDML plugin and related from the coverage report. Improve coverage quality of GeomAPI plugin. --- diff --git a/lcov_reports.sh b/lcov_reports.sh index 103bbfa64..311ff614f 100755 --- a/lcov_reports.sh +++ b/lcov_reports.sh @@ -22,7 +22,7 @@ ALL+=' Config Events GeomValidators Model_ ModelGeomAlgo Selector SketchSolver G # prepare API report cp -f covfile covAPI # remove all plugins data except the needed -NEED='BuildAPI CollectionAPI ConnectorAPI ConstructionAPI ExchangeAPI FeaturesAPI GDMLAPI ModelHighAPI ParametersAPI PartSetAPI PrimitivesAPI SketchAPI' +NEED='BuildAPI CollectionAPI ConnectorAPI ConstructionAPI ExchangeAPI FeaturesAPI ModelHighAPI ParametersAPI PartSetAPI PrimitivesAPI SketchAPI' for MASK in $ALL; do if ! [[ " $NEED " =~ " $MASK " ]]; then lcov -r covAPI *${MASK}* --output-file covAPI_res -q @@ -46,6 +46,11 @@ done # exclude GeomAPI_AISObject as GUI-related object lcov -r covDirect GeomAPI_AISObject* --output-file covDirect_res -q mv -f covDirect_res covDirect +# exclude coverage of algorithms related to GDML plugin +lcov -r covDirect GeomAlgoAPI_ConeSegment* --output-file covDirect_res -q +mv -f covDirect_res covDirect +lcov -r covDirect GeomAlgoAPI_Ellipsoid* --output-file covDirect_res -q +mv -f covDirect_res covDirect rm -rf lcov_htmlDirect genhtml covDirect --output-directory lcov_htmlDirect -q @@ -53,7 +58,7 @@ genhtml covDirect --output-directory lcov_htmlDirect -q # prepare Else report cp -f covfile covElse # remove all plugins data except the needed -NEED='BuildPlugin CollectionPlugin Config ConstructionPlugin Events ExchangePlugin FeaturesPlugin GDMLPlugin GeomData GeomDataAPI GeomValidators InitializationPlugin Model_ ModelAPI ModelGeomAlgo ParametersPlugin PartSetPlugin PrimitivesPlugin Selector SketchPlugin SketchSolver' +NEED='BuildPlugin CollectionPlugin Config ConstructionPlugin Events ExchangePlugin FeaturesPlugin GeomData GeomDataAPI GeomValidators InitializationPlugin Model_ ModelAPI ModelGeomAlgo ParametersPlugin PartSetPlugin PrimitivesPlugin Selector SketchPlugin SketchSolver' for MASK in $ALL; do if ! [[ " $NEED " =~ " $MASK " ]]; then lcov -r covElse *${MASK}* --output-file covElse_res -q diff --git a/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.cpp b/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.cpp index d950a02a7..ad4d1c324 100644 --- a/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.cpp +++ b/src/GeomAPI/GeomAPI_DataMapOfShapeMapOfShapes.cpp @@ -114,6 +114,7 @@ int GeomAPI_DataMapOfShapeMapOfShapes::size() const return MY_MAP->Size(); } +// LCOV_EXCL_START //================================================================================================= // iterator implementation @@ -268,3 +269,4 @@ GeomAPI_DataMapOfShapeMapOfShapes::const_iterator GeomAPI_DataMapOfShapeMapOfSha { return IteratorImpl(std::shared_ptr()); } +// LCOV_EXCL_STOP