From: mpv Date: Mon, 1 Apr 2019 13:24:14 +0000 (+0300) Subject: Improve the coverage level: comment out a long string creation. X-Git-Tag: V9_3_0rc1~3^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c7c4884ea96bdc8de20b5887f26eb07da7a08c1;p=modules%2Fshaper.git Improve the coverage level: comment out a long string creation. --- diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp index a3e92eb67..30f690d1e 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp @@ -361,6 +361,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName) aXaoGroup->add(anElementID); } } catch (XAO::XAO_Exception& e) { + // LCOV_EXCL_START std::string msg = "An error occurred while exporting group " + aResultGroup->data()->name(); msg += ".\n"; msg += e.what(); @@ -368,6 +369,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName) msg += "=> skipping this group from XAO export."; Events_InfoMessage("ExportFeature", msg, this).send(); aXao.removeGroup(aXaoGroup); + // LCOV_EXCL_STOP } } @@ -456,6 +458,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName) } } } catch (XAO::XAO_Exception& e) { + // LCOV_EXCL_START std::string msg = "An error occurred while exporting field " + aResultField->data()->name(); msg += ".\n"; msg += e.what(); @@ -463,6 +466,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName) msg += "=> skipping this field from XAO export."; Events_InfoMessage("ExportFeature", msg, this).send(); aXao.removeField(aXaoField); + // LCOV_EXCL_STOP } }