]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[Code coverage ExchangePlugin]: Exclude "fool-tolerance" validations
authorazv <azv@opencascade.com>
Tue, 18 Dec 2018 04:48:58 +0000 (07:48 +0300)
committerazv <azv@opencascade.com>
Tue, 18 Dec 2018 04:48:58 +0000 (07:48 +0300)
src/ExchangePlugin/ExchangePlugin_Validators.cpp

index 7e768cb460a785c6308b5a0649f3bd063a617213..52db901b70bb351b0c3862df286b01e42cbaae71 100644 (file)
@@ -58,17 +58,21 @@ bool ExchangePlugin_FormatValidator::isValid(const AttributePtr& theAttribute,
                                              Events_InfoMessage& theError) const
 {
   if (!theAttribute->isInitialized()) {
+// LCOV_EXCL_START
     theError = "%1 is not initialized.";
     theError.arg(theAttribute->id());
     return false;
+// LCOV_EXCL_STOP
   }
 
   const AttributeStringPtr aStrAttr =
       std::dynamic_pointer_cast<ModelAPI_AttributeString>(theAttribute);
   if (!aStrAttr) {
+// LCOV_EXCL_START
     theError = "%1 is not a string attribute.";
     theError.arg(theAttribute->id());
     return false;
+// LCOV_EXCL_STOP
   }
 
   std::string aFileName = aStrAttr->value();