Skip to content

Commit 1aecce5

Browse files
committed
doc: Add --merge-mode-functions=separate option to gcovr invocations
Otherwise, commands fail with the error: ``` Stderr of gcov was >><< End of stderr Exception was >>Got function secp256k1_scalar_split_lambda on multiple lines: 67, 142. You can run gcovr with --merge-mode-functions=MERGE_MODE. The available values for MERGE_MODE are described in the documentation.<< End of stderr ```
1 parent 106a7cb commit 1aecce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ Run the tests:
9292

9393
To create a report, `gcovr` is recommended, as it includes branch coverage reporting:
9494

95-
$ gcovr --exclude 'src/bench*' --exclude 'src/modules/.*/bench_impl.h' --print-summary
95+
$ gcovr --merge-mode-functions=separate --exclude 'src/bench*' --exclude 'src/modules/.*/bench_impl.h' --print-summary
9696

9797
To create a HTML report with coloured and annotated source code:
9898

9999
$ mkdir -p coverage
100-
$ gcovr --exclude 'src/bench*' --exclude 'src/modules/.*/bench_impl.h' --html --html-details -o coverage/coverage.html
100+
$ gcovr --merge-mode-functions=separate --exclude 'src/bench*' --exclude 'src/modules/.*/bench_impl.h' --html --html-details -o coverage/coverage.html
101101

102102
#### Exhaustive tests
103103

0 commit comments

Comments
 (0)