From: azv Date: Tue, 18 Dec 2018 04:48:58 +0000 (+0300) Subject: [Code coverage ExchangePlugin]: Exclude "fool-tolerance" validations X-Git-Tag: End2018~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=682b7e4120ba1106c081707f2fe9dc9322c55786;p=modules%2Fshaper.git [Code coverage ExchangePlugin]: Exclude "fool-tolerance" validations --- diff --git a/src/ExchangePlugin/ExchangePlugin_Validators.cpp b/src/ExchangePlugin/ExchangePlugin_Validators.cpp index 7e768cb46..52db901b7 100644 --- a/src/ExchangePlugin/ExchangePlugin_Validators.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Validators.cpp @@ -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(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();