From: Remi Gacogne Date: Mon, 9 Oct 2023 09:27:44 +0000 (+0200) Subject: Code coverage: Fix two typos X-Git-Tag: rec-5.0.0-alpha2~20^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e910a9d07994ed79720d903a5a1515bb65fd95bd;p=thirdparty%2Fpdns.git Code coverage: Fix two typos --- diff --git a/.github/scripts/normalize_paths_in_coverage.py b/.github/scripts/normalize_paths_in_coverage.py index be0a80b122..802b19ff1e 100755 --- a/.github/scripts/normalize_paths_in_coverage.py +++ b/.github/scripts/normalize_paths_in_coverage.py @@ -42,7 +42,7 @@ if __name__ == '__main__': print(f'Ignoring {target} that we could not map to a distdir', file=sys.stderr) continue - # we need to propery map symbolic links + # we need to properly map symbolic links fullPath = os.path.join(repositoryRoot, target) if os.path.islink(fullPath): # get the link target diff --git a/CODE_COVERAGE.md b/CODE_COVERAGE.md index 850502e759..778928b7bc 100644 --- a/CODE_COVERAGE.md +++ b/CODE_COVERAGE.md @@ -27,7 +27,7 @@ Processing pdns/ednssubnet.gcda __w/pdns/pdns/pdns/ednssubnet.gcno:version '408', prefer 'B02' ``` -### Sourced Based +### Source Based `clang++` supports [source-based coverage](https://clang.llvm.org/docs/SourceBasedCodeCoverage.html), which operates on `AST` and preprocessor information directly. This is enabled by passing `-fprofile-instr-generate -fcoverage-mapping` to the compiler and leads to `.profraw` files being produced when the binary is executed. The `.profraw` file(s) can be merged by [`llvm-profdata merge`](https://llvm.org/docs/CommandGuide/llvm-profdata.html#profdata-merge) into a `.profdata` file which can then be used by [`llvm-cov show`](https://llvm.org/docs/CommandGuide/llvm-cov.html#llvm-cov-show) to generate HTML and text reports, or by [`llvm-cov export`](https://llvm.org/docs/CommandGuide/llvm-cov.html#llvm-cov-export) to export `LCOV` data that is compatible with other tools.