mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
add coverage info
This commit is contained in:
parent
ab114c5408
commit
2725840926
2 changed files with 3 additions and 1 deletions
|
@ -44,6 +44,8 @@ CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||||
./build/GreeterTests
|
./build/GreeterTests
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To collect code coverage information, run CMake with the `-DENABLE_TEST_COVERAGE=1` option.
|
||||||
|
|
||||||
### Run clang-format
|
### Run clang-format
|
||||||
|
|
||||||
Use the following commands from the project's root directory to run clang-format (must be installed on the host system).
|
Use the following commands from the project's root directory to run clang-format (must be installed on the host system).
|
||||||
|
|
|
@ -7,7 +7,7 @@ Greeter::Greeter(std::string _name) : name(_name) {}
|
||||||
std::string Greeter::greet(LanguageCode lang) const {
|
std::string Greeter::greet(LanguageCode lang) const {
|
||||||
switch (lang) {
|
switch (lang) {
|
||||||
#if defined(_WIN32) || defined(WIN32)
|
#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:
|
default:
|
||||||
#endif
|
#endif
|
||||||
case LanguageCode::EN:
|
case LanguageCode::EN:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue