From dc0c3db7a12029e4f60e7bb4bbcaca5d28167101 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Tue, 3 Nov 2020 17:42:55 +0100
Subject: [PATCH] Ignore not unit-testable functions

These are pugs initialize and finalize functions.

These functions cannot be checked in the unit-tests framework.
---
 src/utils/PugsUtils.cpp | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/utils/PugsUtils.cpp b/src/utils/PugsUtils.cpp
index 8f388c5b4..d54bd333f 100644
--- a/src/utils/PugsUtils.cpp
+++ b/src/utils/PugsUtils.cpp
@@ -19,6 +19,10 @@
 
 #include <iostream>
 
+// LCOV_EXCL_START
+
+// This function cannot be unit-tested: run once when pugs starts
+
 std::string
 initialize(int& argc, char* argv[])
 {
@@ -98,6 +102,12 @@ initialize(int& argc, char* argv[])
   return filename;
 }
 
+// LCOV_EXCL_STOP
+
+// LCOV_EXCL_START
+
+// This function cannot be unit-tested: run once when pugs stops
+
 void
 finalize()
 {
@@ -105,3 +115,5 @@ finalize()
   PETScWrapper::finalize();
   parallel::Messenger::destroy();
 }
+
+// LCOV_EXCL_STOP
-- 
GitLab