From ac7178ab8e36c64d8e9bc417c5ef73a19e3ad3c3 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Wed, 7 Oct 2020 15:42:50 +0200
Subject: [PATCH] Fix unreachable code coverage

---
 src/language/node_processor/AffectationProcessor.hpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/language/node_processor/AffectationProcessor.hpp b/src/language/node_processor/AffectationProcessor.hpp
index e15d4aa69..1675793a6 100644
--- a/src/language/node_processor/AffectationProcessor.hpp
+++ b/src/language/node_processor/AffectationProcessor.hpp
@@ -133,7 +133,9 @@ class AffectationExecutor final : public IAffectationExecutor
                     if constexpr (std::is_convertible_v<Vi_T, double>) {
                       m_lhs[i] = vi;
                     } else {
+                      // LCOV_EXCL_START
                       throw UnexpectedError("unexpected rhs type in affectation");
+                      // LCOV_EXCL_STOP
                     }
                   },
                   v[i]);
@@ -145,7 +147,9 @@ class AffectationExecutor final : public IAffectationExecutor
                   if constexpr (std::is_convertible_v<Vi_T, double>) {
                     m_lhs = v;
                   } else {
+                    // LCOV_EXCL_START
                     throw UnexpectedError("unexpected rhs type in affectation");
+                    // LCOV_EXCL_STOP
                   }
                 },
                 rhs);
-- 
GitLab