Salome HOME
[Code coverage SketchPlugin]: Exclude code related to GUI from the coverage
authorazv <azv@opencascade.com>
Mon, 10 Dec 2018 09:49:07 +0000 (12:49 +0300)
committerazv <azv@opencascade.com>
Mon, 10 Dec 2018 09:49:07 +0000 (12:49 +0300)
src/SketchPlugin/SketchPlugin_Line.cpp
src/SketchPlugin/SketchPlugin_MacroArc.cpp
src/SketchPlugin/SketchPlugin_MacroCircle.cpp
src/SketchPlugin/SketchPlugin_Plugin.cpp
src/SketchPlugin/SketchPlugin_SketchEntity.h
src/SketchPlugin/SketchPlugin_Split.cpp
src/SketchPlugin/SketchPlugin_Trim.cpp

index 23cbe266674cfd4cc376d113f1d9807341e8a32b..f04cf47d7740718cca99c19a355ed01295fe5f64 100644 (file)
@@ -92,6 +92,7 @@ void SketchPlugin_Line::execute()
   }
 }
 
+// LCOV_EXCL_START
 std::string SketchPlugin_Line::processEvent(const std::shared_ptr<Events_Message>& theMessage)
 {
   std::string aFilledAttributeName;
@@ -113,6 +114,7 @@ std::string SketchPlugin_Line::processEvent(const std::shared_ptr<Events_Message
   }
   return aFilledAttributeName;
 }
+// LCOV_EXCL_STOP
 
 double SketchPlugin_Line::distanceToPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint)
 {
index 8860e4f32557268da3b093e2cb78be6898d70400..f50e225543e9ff2eb00671365d3e0aeb5bca8794 100644 (file)
@@ -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<Events_Message>& theMessage)
 {
   std::string aFilledAttributeName;
@@ -450,6 +451,7 @@ std::string SketchPlugin_MacroArc::processEvent(const std::shared_ptr<Events_Mes
   }
   return aFilledAttributeName;
 }
+// LCOV_EXCL_STOP
 
 FeaturePtr SketchPlugin_MacroArc::createArcFeature()
 {
index 3b8049b5777f16462b2aff6f7c81c063a8ff8ae9..5a3c14cb936796202f3eb7663883ff68bea606e3 100644 (file)
@@ -119,6 +119,7 @@ void SketchPlugin_MacroCircle::execute()
   Events_Loop::loop()->send(aMessage);
 }
 
+// LCOV_EXCL_START
 std::string SketchPlugin_MacroCircle::processEvent(
                                               const std::shared_ptr<Events_Message>& theMessage)
 {
@@ -180,6 +181,7 @@ std::string SketchPlugin_MacroCircle::processEvent(
   }
   return aFilledAttributeName;
 }
+// LCOV_EXCL_STOP
 
 void SketchPlugin_MacroCircle::constraintsForCircleByCenterAndPassed(FeaturePtr theCircleFeature)
 {
index f7bc806d56ed4e79ae57a26aac2017a7074580e6..d3a8a43e2be0e167ac6100d99113b193de91b117 100644 (file)
@@ -252,6 +252,7 @@ FeaturePtr SketchPlugin_Plugin::createFeature(std::string theFeatureID)
   return FeaturePtr();
 }
 
+// LCOV_EXCL_START
 void SketchPlugin_Plugin::processEvent(const std::shared_ptr<Events_Message>& theMessage)
 {
   const Events_ID kRequestEvent =
@@ -321,3 +322,4 @@ std::shared_ptr<ModelAPI_FeatureStateMessage> SketchPlugin_Plugin
   }
   return aMsg;
 }
+// LCOV_EXCL_STOP
index baa37b9d8f5ba1ba3ca64aea7924c8e670e10b07..4e984c0a1a9b8e9b8cd82c59750074cd9aaada79 100644 (file)
@@ -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<GeomAPI_ICustomPrs> theDefaultPrs)
@@ -192,6 +193,7 @@ class SketchPlugin_SketchEntity : public SketchPlugin_Feature, public GeomAPI_IC
     }
     return isCustomized;
   }
+// LCOV_EXCL_STOP
 
 protected:
   /// initializes mySketch
index 48162af135ee7a5569ed923dc6ce3b0b0772b051..c90b10cc05d952340a0cc6602d477f79e2860d17 100644 (file)
@@ -421,6 +421,7 @@ void SketchPlugin_Split::execute()
 #endif
 }
 
+// LCOV_EXCL_START
 std::string SketchPlugin_Split::processEvent(const std::shared_ptr<Events_Message>& theMessage)
 {
 #ifdef DEBUG_SPLIT
@@ -484,6 +485,7 @@ std::string SketchPlugin_Split::processEvent(const std::shared_ptr<Events_Messag
   }
   return aFilledAttributeName;
 }
+// LCOV_EXCL_STOP
 
 AISObjectPtr SketchPlugin_Split::getAISObject(AISObjectPtr thePrevious)
 {
index 64b4a2252235edb6c7e3363154035e5ca1798a28..5346feda8e78971c7b434e47781bbd0588e5c56a 100644 (file)
@@ -478,6 +478,7 @@ void SketchPlugin_Trim::execute()
 #endif
 }
 
+// LCOV_EXCL_START
 std::string SketchPlugin_Trim::processEvent(const std::shared_ptr<Events_Message>& theMessage)
 {
 #ifdef DEBUG_TRIM_METHODS
@@ -529,6 +530,7 @@ std::string SketchPlugin_Trim::processEvent(const std::shared_ptr<Events_Message
   }
   return aFilledAttributeName;
 }
+// LCOV_EXCL_STOP
 
 bool SketchPlugin_Trim::setCoincidenceToAttribute(const AttributePtr& theAttribute,
                                 const std::set<AttributePoint2DPtr>& theFurtherCoincidences,