]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Code coverage: Fix two typos
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 9 Oct 2023 09:27:44 +0000 (11:27 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 9 Oct 2023 10:43:26 +0000 (12:43 +0200)
.github/scripts/normalize_paths_in_coverage.py
CODE_COVERAGE.md

index be0a80b12205d640de7611524265569ce6e9aa56..802b19ff1e6ff2c6f82cfafdba412599d3128190 100755 (executable)
@@ -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
index 850502e7599de5e022eb9039e0b6953a6ec85c95..778928b7bca2b62ec8a38202158cec67df2f6d8f 100644 (file)
@@ -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.