Code coverage tests

This page documents the degree to which the PARI/GP source code is tested by our public test suite, distributed with the source distribution in directory src/test/. This is measured by the gcov utility; we then process gcov output using the lcov frond-end.

We test a few variants depending on Configure flags on the pari.math.u-bordeaux.fr machine (x86_64 architecture), and agregate them in the final report:

The target is to exceed 90% coverage for all mathematical modules (given that branches depending on DEBUGLEVEL or DEBUGMEM are not covered). This script is run to produce the results below.

LCOV - code coverage report
Current view: top level - basemath - subcyclo.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29821-ad8e616c7c) Lines: 609 656 92.8 %
Date: 2024-12-28 09:09:04 Functions: 46 49 93.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_polsubcyclo_orbits 0
_Fl_subcyclo_orbits 0
znstar_bits 0
znstar_quotient 7
znsubgroupgenerators 21
bnr_to_abgrp 56
enlarge_H 56
factor_Aurifeuille 63
max_order_ele 70
znstar_reduce_modulus 182
factor_Aurifeuille_prime 364
Aurifeuille_init 427
factor_Aurifeuille_aux 427
galoiscyclo 434
vecmod_to_vecsmall 2184
znstar_small 2184
mod_to_small 2961
znstar_elts 3780
znstar_hnf 3780
znstar_hnf_elts 3780
znstar_hnf_generators 4200
polsubcyclo_g 33527
polsubcyclo 33583
gscycloconductor 49813
galoissubcyclo 49876
_itos 50247
subcyclo_nH 50261
polsubcyclo_cyclic 62598
polsubcyclo_complex_bound 81042
polsubcyclo_complex_roots 81042
polsubcyclo_roots 81042
polsubcyclo_start 81903
polsubcyclo_orbits 99486
znstar_cosets 110514
znstar_order 164044
znstar_conductor 171487
znstar_conductor_bits 172145
znstar_generate 255036
znstar_coset_func 275778
znstar_coset_bits_inplace 531855
znstar_partial_bits 541670
znstar_partial_coset_bits 541670
muliimod_sz 668922
znstar_partial_coset_bits_inplace 1073525
lift_check_modulus 1337848
znstar_partial_coset_func 1349303
order_H_x 1358266
_subcyclo_orbits 4778736
polsubcyclo_powz 5648028

Generated by: LCOV version 1.16