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 - Qfb.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.1 lcov report (development 28697-a4113027d0) Lines: 985 1066 92.4 %
Date: 2023-09-28 07:47:45 Functions: 119 128 93.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
qfb_1 0
qfbcompraw_i 0
qfisolvep 0
qfr3_1 0
qfr3_powraw 0
qfr5_1 0
qfr_1_fill 0
qfrsolvep 0
quadgen 0
_qfimulraw 7
_qfisqrraw 7
qfbinv 7
qfipowraw 7
qfr5_powraw 7
qfrinvraw 7
rhoimag 7
qfrpowraw 14
qfrsqr0 14
qfbpowraw 21
qfr5_pow 28
qfr_1 35
qfr_disc 35
redreal 42
qfb_comp_gen 84
qfrpow 133
qfr5_init 140
qfr3_init 364
redreal_i 399
qfrcomp0 441
qfr5_to_qfr 462
quadgen0 560
nupow 1008
quadpoly0 1036
quadpoly 2044
check_quaddisc_imag 2170
qfr_data_init 2170
qfbcompraw 2191
qfr3_pow 4529
mul_nucomp 4739
famat_divsqr 5299
qfr_1_by_disc 6867
check_quaddisc_real 6916
qfbcornacchia 7630
qfbsolve_all 10227
mul_nudupl 11606
nudupl 11648
qfr3_to_qfr 31913
cornacchia2_sqrt 40677
allsols 48026
qfbred 52979
qfbred0 54771
cornacchia 55246
GL2_qfb_equal 61068
qfb3 77161
Qfb0 77189
qfbsqr 95617
qfbcomp 129398
primeform 135459
check_quaddisc 151511
qfr5_dist 184254
qfr_to_qfr5 217084
qfisolvep_all 223049
quadpoly_i 241325
quadpoly_ii 243362
SL2_div_mul_e1 344318
nucomp 400722
parteucl 412328
qfbredsl2 519693
qfbsqr_i 698063
qfi_1 708157
qfi_1_by_disc 720115
qfrsolve_normform 770126
qfisqr0 793666
is_qfi 814212
qfb_inv 878246
redimag_1_b0 958774
quadpoly_bc 963477
redrealsl2 979655
qfr3_comp 1006919
qfr3_compraw 1006919
setq_b0 1068361
cornacchia2 1088751
lastqi 1128541
cornacchia2_i 1128554
qfr3_red 1169914
qfbpows 1293878
qfbpow 1393421
qfisolve_normform 1445677
qfr5_comp 1730400
qfr5_compraw 1730414
check_qfbext 1807006
known_prime 1862943
redimagsl2 1933544
qfr5_red 1947428
qfsolve_normform 2215803
normforms 2620772
REDB 2768824
qfbsolve_primitive 2828294
qfb_initrd 2838519
qfbsolve 2838523
qfbsolve_primitive_i 2843818
REDBU 5297896
qfr3_rho 6994478
dvmdii_round 8066720
_qfimul 9584185
qfbpow_i 10082572
qfr5_rho 10296041
rhorealsl2 10810674
qfipow 11475860
fix_expo 12022738
primeform_u 12209299
_rhorealsl2 13379274
qfr_isreduced 17275795
rho_get_BC 17290519
qfbred_i 17881670
redimag 17936077
ab_isreduced 20824050
qfb_equal 23783632
_qfisqr 25411397
qfbcomp_i 27255569
qfb_sqr 27276646
qficomp0 62378597
qfb_comp 65105885
setq 80264067
redimag_av 81247137
redimag_1 81287578
dvmdsu_round 97113136
sREDB 97114324

Generated by: LCOV version 1.14