From: azv Date: Mon, 10 Dec 2018 09:49:07 +0000 (+0300) Subject: [Code coverage SketchPlugin]: Exclude code related to GUI from the coverage X-Git-Tag: End2018~90 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dc0da26d3d533d2966120ac1d9e638f93fc407c1;p=modules%2Fshaper.git [Code coverage SketchPlugin]: Exclude code related to GUI from the coverage --- diff --git a/src/SketchPlugin/SketchPlugin_Line.cpp b/src/SketchPlugin/SketchPlugin_Line.cpp index 23cbe2666..f04cf47d7 100644 --- a/src/SketchPlugin/SketchPlugin_Line.cpp +++ b/src/SketchPlugin/SketchPlugin_Line.cpp @@ -92,6 +92,7 @@ void SketchPlugin_Line::execute() } } +// LCOV_EXCL_START std::string SketchPlugin_Line::processEvent(const std::shared_ptr& theMessage) { std::string aFilledAttributeName; @@ -113,6 +114,7 @@ std::string SketchPlugin_Line::processEvent(const std::shared_ptr& thePoint) { diff --git a/src/SketchPlugin/SketchPlugin_MacroArc.cpp b/src/SketchPlugin/SketchPlugin_MacroArc.cpp index 8860e4f32..f50e22554 100644 --- a/src/SketchPlugin/SketchPlugin_MacroArc.cpp +++ b/src/SketchPlugin/SketchPlugin_MacroArc.cpp @@ -373,6 +373,7 @@ void SketchPlugin_MacroArc::execute() Events_Loop::loop()->send(aMessage); } +// LCOV_EXCL_START std::string SketchPlugin_MacroArc::processEvent(const std::shared_ptr& theMessage) { std::string aFilledAttributeName; @@ -450,6 +451,7 @@ std::string SketchPlugin_MacroArc::processEvent(const std::shared_ptrsend(aMessage); } +// LCOV_EXCL_START std::string SketchPlugin_MacroCircle::processEvent( const std::shared_ptr& theMessage) { @@ -180,6 +181,7 @@ std::string SketchPlugin_MacroCircle::processEvent( } return aFilledAttributeName; } +// LCOV_EXCL_STOP void SketchPlugin_MacroCircle::constraintsForCircleByCenterAndPassed(FeaturePtr theCircleFeature) { diff --git a/src/SketchPlugin/SketchPlugin_Plugin.cpp b/src/SketchPlugin/SketchPlugin_Plugin.cpp index f7bc806d5..d3a8a43e2 100644 --- a/src/SketchPlugin/SketchPlugin_Plugin.cpp +++ b/src/SketchPlugin/SketchPlugin_Plugin.cpp @@ -252,6 +252,7 @@ FeaturePtr SketchPlugin_Plugin::createFeature(std::string theFeatureID) return FeaturePtr(); } +// LCOV_EXCL_START void SketchPlugin_Plugin::processEvent(const std::shared_ptr& theMessage) { const Events_ID kRequestEvent = @@ -321,3 +322,4 @@ std::shared_ptr SketchPlugin_Plugin } return aMsg; } +// LCOV_EXCL_STOP diff --git a/src/SketchPlugin/SketchPlugin_SketchEntity.h b/src/SketchPlugin/SketchPlugin_SketchEntity.h index baa37b9d8..4e984c0a1 100644 --- a/src/SketchPlugin/SketchPlugin_SketchEntity.h +++ b/src/SketchPlugin/SketchPlugin_SketchEntity.h @@ -112,6 +112,7 @@ class SketchPlugin_SketchEntity : public SketchPlugin_Feature, public GeomAPI_IC return false; } +// LCOV_EXCL_START /// Customize presentation of the feature virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs, std::shared_ptr theDefaultPrs) @@ -192,6 +193,7 @@ class SketchPlugin_SketchEntity : public SketchPlugin_Feature, public GeomAPI_IC } return isCustomized; } +// LCOV_EXCL_STOP protected: /// initializes mySketch diff --git a/src/SketchPlugin/SketchPlugin_Split.cpp b/src/SketchPlugin/SketchPlugin_Split.cpp index 48162af13..c90b10cc0 100644 --- a/src/SketchPlugin/SketchPlugin_Split.cpp +++ b/src/SketchPlugin/SketchPlugin_Split.cpp @@ -421,6 +421,7 @@ void SketchPlugin_Split::execute() #endif } +// LCOV_EXCL_START std::string SketchPlugin_Split::processEvent(const std::shared_ptr& theMessage) { #ifdef DEBUG_SPLIT @@ -484,6 +485,7 @@ std::string SketchPlugin_Split::processEvent(const std::shared_ptr& theMessage) { #ifdef DEBUG_TRIM_METHODS @@ -529,6 +530,7 @@ std::string SketchPlugin_Trim::processEvent(const std::shared_ptr& theFurtherCoincidences,