From 682b7e4120ba1106c081707f2fe9dc9322c55786 Mon Sep 17 00:00:00 2001 From: azv Date: Tue, 18 Dec 2018 07:48:58 +0300 Subject: [PATCH] [Code coverage ExchangePlugin]: Exclude "fool-tolerance" validations --- src/ExchangePlugin/ExchangePlugin_Validators.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.39.2