GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: dumux-testing/coverage/test/example.hh
Date: 2025-04-12 19:19:20
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 0 0 -%
Branches: 0 0 -%

Line Branch Exec Source
1 #ifndef DUMUX_COVERAGE_TEST_EXAMPLE_HH
2 #define DUMUX_COVERAGE_TEST_EXAMPLE_HH
3
4 #include <iostream>
5
6 namespace Dumux {
7
8 template<bool useGerman = false>
9 struct Printer;
10
11 template<>
12 struct Printer<false>
13 {
14 2 void print() const
15 {
16 2 std::cout << "Hello World!" << std::endl;
17 }
18 };
19
20 template<>
21 struct Printer<true>
22 {
23 1 void print() const
24 {
25 1 std::cout << "Hallo Welt!" << std::endl;
26 }
27 };
28
29 } // end namespace Dumux
30
31 #endif
32