I don’t have access to the files on my internet machine but I can give a short snippet of the coverage.
I ran the following commands to produce the coverage:
> LLVM_PROFILE_FILE="coverage.profraw" ./MyTest
> llvm-profdata merge -sparse coverage.profraw -o coverage.profdata
> llvm-cov show ./MyTest -instr-profile=coverage.profdata > coverage.txt
The above generated the following:
/path/to/source/file.cpp:
1| |#include <gtest/gtest.h>
2| |
3| |#include <chrono>
4| |#include <iostream>
5| |#include <thread>
6| |
7| |void foo()
8| 2|{
9| 2|std::this_thread::sleep_for(std::chrono::seconds(1));
10| 2|}
...
The rest of this file continues with additional source files followed by additional lines of codes marked with the number of times they were hit.