[librsvg: 3/11] coverage: ignore lines with the unreachable!() macro




commit 339e64f6eef49b77a92524cd2116b40598c201b0
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Aug 9 11:16:58 2022 -0500

    coverage: ignore lines with the unreachable!() macro
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/727>

 ci/gen-coverage.sh | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/ci/gen-coverage.sh b/ci/gen-coverage.sh
index dc62ff149..0a4fd512b 100644
--- a/ci/gen-coverage.sh
+++ b/ci/gen-coverage.sh
@@ -18,6 +18,7 @@ call_grcov() {
     #       --ignore '**/build/markup5ever*'       - ignore generated code from dependencies
     #       --ignore '**/build/cssparser*'         - ignore generated code from dependencies
     #       --ignore 'cargo_cache/*'               - ignore code from dependencies
+    #       --excl-line 'unreachable!'             - ignore lines with the unreachable!() macro
     #       --output-type $output_type
     #       --output-path $output_path
 
@@ -30,6 +31,7 @@ call_grcov() {
           --ignore '**/build/markup5ever*'       \
           --ignore '**/build/cssparser*'         \
           --ignore 'cargo_cache/*'               \
+          --excl-line 'unreachable!'             \
           --output-type $output_type             \
           --output-path $output_path
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]