diff --git a/src/scheme/DiscreteFunctionType.hpp b/src/scheme/DiscreteFunctionType.hpp
index 8532a25e9111d40a8fcfbd4d0fe8cb6805d525c9..6dd002be688133cbc96a5780d7933fad51bf86cb 100644
--- a/src/scheme/DiscreteFunctionType.hpp
+++ b/src/scheme/DiscreteFunctionType.hpp
@@ -21,7 +21,9 @@ name(DiscreteFunctionType type)
   case DiscreteFunctionType::P0Vector:
     return "P0Vector";
   }
+  // LCOV_EXCL_START
   return {};
+  // LCOV_EXCL_STOP
 }
 
 #endif   // DISCRETE_FUNCTION_TYPE_HPP
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index c36830918d3d769870250d212ea6d04e5d8316fc..862e2b79e61f832311e5ae777538893b0b97b45c 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -58,6 +58,7 @@ add_executable (unit_tests
   test_CRSMatrix.cpp
   test_DataVariant.cpp
   test_Demangle.cpp
+  test_DiscreteFunctionType.cpp
   test_DoWhileProcessor.cpp
   test_EmbeddedData.cpp
   test_EscapedString.cpp
diff --git a/tests/test_DiscreteFunctionType.cpp b/tests/test_DiscreteFunctionType.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..c5e00470e267cef8614281a03801ae4395975c45
--- /dev/null
+++ b/tests/test_DiscreteFunctionType.cpp
@@ -0,0 +1,15 @@
+#include <catch2/catch_test_macros.hpp>
+#include <catch2/matchers/catch_matchers_all.hpp>
+
+#include <scheme/DiscreteFunctionType.hpp>
+
+// clazy:excludeall=non-pod-global-static
+
+TEST_CASE("DiscreteFunctionType", "[scheme]")
+{
+  SECTION("name")
+  {
+    REQUIRE(name(DiscreteFunctionType::P0) == "P0");
+    REQUIRE(name(DiscreteFunctionType::P0Vector) == "P0Vector");
+  }
+}