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.16.2 lcov report (development 29115-f22e516b23) Lines: 608 656 92.7 %
Date: 2024-03-28 08:06:56 Functions: 46 49 93.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Aurifeuille_init 427
Fl_polsubcyclo_orbits 0
_Fl_subcyclo_orbits 0
_itos 50205
_subcyclo_orbits 4778652
bnr_to_abgrp 56
enlarge_H 56
factor_Aurifeuille 63
factor_Aurifeuille_aux 427
factor_Aurifeuille_prime 364
galoiscyclo 406
galoissubcyclo 49841
gscycloconductor 49778
lift_check_modulus 1337813
max_order_ele 70
mod_to_small 2954
muliimod_sz 668712
order_H_x 1358266
polsubcyclo 33534
polsubcyclo_complex_bound 80986
polsubcyclo_complex_roots 80986
polsubcyclo_cyclic 62500
polsubcyclo_g 33478
polsubcyclo_orbits 99472
polsubcyclo_powz 5647160
polsubcyclo_roots 80986
polsubcyclo_start 81819
subcyclo_nH 50219
vecmod_to_vecsmall 2177
znstar_bits 0
znstar_conductor 171452
znstar_conductor_bits 172103
znstar_coset_bits_inplace 531834
znstar_coset_func 275736
znstar_cosets 110507
znstar_elts 3766
znstar_generate 254987
znstar_hnf 3766
znstar_hnf_elts 3766
znstar_hnf_generators 4186
znstar_order 164016
znstar_partial_bits 541607
znstar_partial_coset_bits 541607
znstar_partial_coset_bits_inplace 1073441
znstar_partial_coset_func 1349177
znstar_quotient 7
znstar_reduce_modulus 182
znstar_small 2177
znsubgroupgenerators 21

Generated by: LCOV version 1.14