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 30702-bddb8d6928) Lines: 609 656 92.8 %
Date: 2026-02-23 02:23:56 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 6
znsubgroupgenerators 15
enlarge_H 40
bnr_to_abgrp 44
max_order_ele 50
factor_Aurifeuille 54
znstar_reduce_modulus 130
factor_Aurifeuille_prime 310
Aurifeuille_init 364
factor_Aurifeuille_aux 364
galoiscyclo 396
vecmod_to_vecsmall 1759
znstar_small 1759
mod_to_small 2322
znstar_elts 3122
znstar_hnf 3122
znstar_hnf_elts 3122
znstar_hnf_generators 3428
polsubcyclo_g 28806
polsubcyclo 28848
gscycloconductor 42710
galoissubcyclo 42764
_itos 43027
subcyclo_nH 43039
polsubcyclo_cyclic 53726
polsubcyclo_complex_bound 69508
polsubcyclo_complex_roots 69508
polsubcyclo_roots 69508
polsubcyclo_start 70268
polsubcyclo_orbits 85290
znstar_cosets 94702
znstar_order 140475
znstar_conductor 146902
znstar_conductor_bits 147466
znstar_generate 215651
znstar_coset_func 236620
znstar_partial_bits 453658
znstar_partial_coset_bits 453658
znstar_coset_bits_inplace 455396
muliimod_sz 570704
znstar_partial_coset_bits_inplace 909054
lift_check_modulus 962732
order_H_x 970190
znstar_partial_coset_func 1145674
_subcyclo_orbits 3900128
polsubcyclo_powz 4649108

Generated by: LCOV version 1.16