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 - Zp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29732-95c6201d93) Lines: 734 860 85.3 %
Date: 2024-11-21 09:08:54 Functions: 69 79 87.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BezoutPropagate 7546
BuildTree 197493
F3x_frobeniuslift 3717
Flx_Teichmuller 13979
Fp_pow2n 476
FqV_roots_from_deg1 96240
MultiLift 197522
ZpM_invlift 0
ZpXQM_prodFrobenius 147
ZpXQX_ZpXQXQ_liftroot 0
ZpXQX_digits 623
ZpXQX_divrem 146440
ZpXQX_liftfact 34699
ZpXQX_liftroot 231
ZpXQX_liftroot_vald 231
ZpXQX_liftroots 0
ZpXQX_liftroots_full 56
ZpXQX_roots 56
ZpXQ_HenselLift 503422
ZpXQ_RecTreeLift 1139225
ZpXQ_div 31605
ZpXQ_inv 180978
ZpXQ_invlift 202047
ZpXQ_log 21069
ZpXQ_log_to_ath 21069
ZpXQ_sqrt 0
ZpXQ_sqrtnlift 1155
ZpX_Frobenius 301
ZpX_HenselLift 1587660
ZpX_RecTreeLift 3916481
ZpX_ZpXQ_liftroot 1729
ZpX_ZpXQ_liftroot_ea 33457
ZpX_liftfact 244907
ZpX_liftroot 6397
ZpX_liftroots 139
ZpX_liftroots_full 96185
ZpX_roots 96045
Zp_div 107708
Zp_divlift 1448448
Zp_exp 107706
Zp_inv 1340739
Zp_invlift 1340740
Zp_log 195790
Zp_sqrt 1255057
Zp_sqrtlift 139972
Zp_sqrtnlift 248972
ZqX_ZqXQ_liftroot 35
ZqX_liftfact 46654
ZqX_liftroot 154
ZqX_roots 6249
Zq_sqrtnlift 0
_ZpM_eval 0
_ZpM_invd 0
_can5_invd 20671
_can5_invl 29778
_can5_iter 20671
_can5_lin 9107
_can5_mul 41643
_can5_sqr 41447
_can_invd 7476
_can_invl 11130
_can_iter 7476
_can_lin 3654
_inv_eval 523103
_inv_invd 523102
_shift 62314
_sqrtn_eval 1806
_sqrtn_invd 1806
bezout_lift_fact 1771
gen_ZpM_Dixon 0
gen_ZpM_Newton 0
gen_ZpX_Dixon 199955
gen_ZpX_Newton 267061
mul2n 616
polhensellift 28
polteichmuller 35
quadratic_prec_mask 4679941
sqr2n 749
to_ZX 0

Generated by: LCOV version 1.16