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.16.1 lcov report (development 28676-df828f1c94) Lines: 764 860 88.8 %
Date: 2023-08-26 07:54:43 Functions: 73 79 92.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ZpXQX_ZpXQXQ_liftroot 0
ZpXQX_liftroots 0
ZpXQ_sqrt 0
Zq_sqrtnlift 0
gen_ZpM_Dixon 0
to_ZX 0
polhensellift 28
ZqX_ZqXQ_liftroot 35
polteichmuller 35
ZpXQX_liftroots_full 56
ZpXQX_roots 56
ZpX_liftroots 139
ZpXQM_prodFrobenius 147
ZqX_liftroot 154
ZpXQX_liftroot 231
ZpXQX_liftroot_vald 231
ZpX_Frobenius 301
Fp_pow2n 476
mul2n 616
ZpXQX_digits 623
sqr2n 749
ZpXQ_sqrtnlift 1155
ZpX_ZpXQ_liftroot 1729
bezout_lift_fact 1757
_sqrtn_eval 1806
_sqrtn_invd 1806
_can_lin 3654
F3x_frobeniuslift 3717
ZqX_roots 6128
ZpX_liftroot 6232
_can_invd 7476
_can_iter 7476
BezoutPropagate 7504
_can5_lin 9107
_can_invl 11130
Flx_Teichmuller 13979
_can5_invd 20671
_can5_iter 20671
ZpXQ_log 21099
ZpXQ_log_to_ath 21099
_can5_invl 29778
ZpXQ_div 31605
ZpX_ZpXQ_liftroot_ea 33803
ZpXQX_liftfact 34699
_can5_sqr 41447
_can5_mul 41643
ZqX_liftfact 46564
_shift 62314
ZpX_roots 90419
ZpX_liftroots_full 90559
FqV_roots_from_deg1 90616
Zp_exp 107245
Zp_div 107247
Zp_sqrtlift 139972
ZpXQX_divrem 146440
ZpXQ_inv 180978
BuildTree 191204
MultiLift 191233
gen_ZpX_Dixon 199955
ZpXQ_invlift 202077
ZpX_liftfact 234866
Zp_sqrtnlift 248909
gen_ZpX_Newton 267151
Zp_log 280452
ZpXQ_HenselLift 501709
_inv_eval 523311
_inv_invd 523313
ZpXQ_RecTreeLift 1135735
Zp_sqrt 1255057
ZpX_HenselLift 1563463
ZpM_invlift 1574885
gen_ZpM_Newton 1574895
_ZpM_eval 1602114
_ZpM_invd 1602120
Zp_inv 1639367
Zp_invlift 1639367
Zp_divlift 1746615
ZpX_RecTreeLift 3847379
quadratic_prec_mask 8039885

Generated by: LCOV version 1.14