GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux-testing/coverage/test/example.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 0 6 0.0%
Functions: 0 2 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 void print() const
15 {
16 std::cout << "Hello World!" << std::endl;
17 }
18 };
19
20 template<>
21 struct Printer<true>
22 {
23 void print() const
24 {
25 std::cout << "Hallo Welt!" << std::endl;
26 }
27 };
28
29 } // end namespace Dumux
30
31 #endif
32