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.1 lcov report (development 30074-db9b3c0519) Lines: 609 656 92.8 %
Date: 2025-03-13 08:38:27 Functions: 46 49 93.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Aurifeuille_init 366
Fl_polsubcyclo_orbits 0
_Fl_subcyclo_orbits 0
_itos 43146
_subcyclo_orbits 4099000
bnr_to_abgrp 48
enlarge_H 48
factor_Aurifeuille 54
factor_Aurifeuille_aux 366
factor_Aurifeuille_prime 312
galoiscyclo 384
galoissubcyclo 42828
gscycloconductor 42774
lift_check_modulus 1146804
max_order_ele 60
mod_to_small 2538
muliimod_sz 575926
order_H_x 1164228
polsubcyclo 29048
polsubcyclo_complex_bound 69710
polsubcyclo_complex_roots 69710
polsubcyclo_cyclic 54004
polsubcyclo_g 29000
polsubcyclo_orbits 85416
polsubcyclo_powz 4862464
polsubcyclo_roots 69710
polsubcyclo_start 70460
subcyclo_nH 43158
vecmod_to_vecsmall 1872
znstar_bits 0
znstar_conductor 147066
znstar_conductor_bits 147630
znstar_coset_bits_inplace 456208
znstar_coset_func 237180
znstar_cosets 94787
znstar_elts 3240
znstar_generate 218669
znstar_hnf 3240
znstar_hnf_elts 3240
znstar_hnf_generators 3600
znstar_order 140741
znstar_partial_bits 464410
znstar_partial_coset_bits 464410
znstar_partial_coset_bits_inplace 920618
znstar_partial_coset_func 1157798
znstar_quotient 6
znstar_reduce_modulus 156
znstar_small 1872
znsubgroupgenerators 18

Generated by: LCOV version 1.16