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 - ecpp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30107-5d3c5ac62a) Lines: 748 805 92.9 %
Date: 2025-04-01 09:20:36 Functions: 95 98 96.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
D_collectcards 494823
D_find_discsqrt 35413
D_get_wD 57650768
D_polclass 1022
Dfac_to_p 1022
Dfac_to_roots 1022
Dinfo_get_D 58145423
Dinfo_get_Dfac 31869957
Dinfo_get_bi 21305067
Dinfo_get_h 29471330
Dinfo_get_pd 57750700
Dmbatch_factor_Dmqvec 3514
Dmq_get_D 0
Dmq_get_h 4564
Dmqvec_slice 3514
Dmvec_batchfactor 3514
FpJ_is_inf 5236
FpX_classtower_oneroot 1022
NDmqg_get_D 7224
NDmqg_get_Dinfo 9268
NDmqg_get_N 1022
NDmqg_get_g 1022
NDmqg_get_m 1022
NDmqg_get_q 1022
NDmqg_get_sqrt 1022
NUV_find_m 9821
N_downrun 1085
NqE_check 2380
Nq_isvalid 474
allh 77
allh_r 392
cert_get_D 175
cert_get_E 175
cert_get_J 56
cert_get_N 2841
cert_get_P 1232
cert_get_T 28
cert_get_a4 1330
cert_get_a6 420
cert_get_lambda 28
cert_get_m 867
cert_get_q 217
cert_get_qlast 7
cert_get_s 866
cert_get_t 1694
cert_get_x 161
cert_out 7
dihedralpol 14
ecpp 28
ecpp0 98
ecpp_disclist_init 77
ecpp_flattencert 56
ecpp_ispsp_worker 18859
ecpp_param 77
ecpp_param_get_disclist 1085
ecpp_param_get_maxpcdg 1085
ecpp_param_get_primelist 13596
ecpp_param_get_primeord 12455
ecpp_param_get_primorial_vec 3514
ecpp_param_get_tune 4599
ecpp_param_get_uprimelist 1085
ecpp_param_set 77
ecpp_parsqrt 12455
ecpp_primelist_init 77
ecpp_primeord_init 77
ecpp_qlo 3514
ecpp_sqrt_worker 15852
ecpp_step1 77
ecpp_step2 56
ecpp_step2_worker 1022
ecppexport 35
ecppisvalid 35
ecppisvalid_i 35
find_EP 1022
gained_bits 11025
genusfield 301
isprimeECPP 42
j0_find_g 252
lessthan_qlo 12236
magma_out 14
mkDinfo 1907423
mkNDmqg 1022
polmodular_db_init_allinv 56
primecertisvalid_ecpp_worker 483
primo_out 14
primo_printval 777
primorial_vec 77
realpart 14
sort_Dmq_by_cnum 2282
sort_Dmq_by_q 52801
sort_NDmq_by_D 3612
sort_disclist 28820155
time_record 0
timer_record 0
tunevec 4599
tunevec_batchsize 1085
tunevec_tdivbd 4599
zv_binsearch0 7028

Generated by: LCOV version 1.16