From 27258409264eacec94bbfc5e3b40400cd336a637 Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Mon, 13 Apr 2020 18:04:03 +0200 Subject: [PATCH] add coverage info --- README.md | 2 ++ source/greeter.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b038d2c..b0b5ba9 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test ./build/GreeterTests ``` +To collect code coverage information, run CMake with the `-DENABLE_TEST_COVERAGE=1` option. + ### Run clang-format Use the following commands from the project's root directory to run clang-format (must be installed on the host system). diff --git a/source/greeter.cpp b/source/greeter.cpp index e82699f..6295269 100644 --- a/source/greeter.cpp +++ b/source/greeter.cpp @@ -7,7 +7,7 @@ Greeter::Greeter(std::string _name) : name(_name) {} std::string Greeter::greet(LanguageCode lang) const { switch (lang) { #if defined(_WIN32) || defined(WIN32) - // this silences MSVC as it does not seem to understand strongly-typed enums + // this silences a MSVC warning as it does not seem to understand strongly-typed enums default: #endif case LanguageCode::EN: