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.18.1 lcov report (development 30007-407ab607e8) Lines: 1102 1224 90.0 %
Date: 2025-02-20 09:19:49 Functions: 131 140 93.6 %
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
qfbpowraw 21
qfr5_pow 21
qfr_1 35
qfr_disc 35
qfrsqr0 35
qfbred_real 63
qfb_comp_gen 84
qfrpow 112
qfr5_init 140
qfr3_init 371
qfbred_real_basecase_i 427
qfbred_real_i 427
qfrcomp0 441
qfr5_to_qfr 483
quadgen0 560
nupow 1008
quadpoly0 1036
quadpoly 2051
check_quaddisc_imag 2170
qfr_data_init 2170
qfbcompraw 2198
qfr3_pow 4557
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 31920
cornacchia2_sqrt 40677
allsols 48038
qfbred 53106
qfbred0 54919
cornacchia 55250
GL2_qfb_equal 61068
pqfbred_basecase 61492
Qfb0 77231
qfbsqr 95638
pqfbred_iter_1 124020
pqfbred_rec 124020
qfb_minexpi 125056
qfbcomp 133598
primeform 135529
qfb3 139081
check_quaddisc 151625
qfr5_dist 184688
qfbredsl2_real 209575
qfr_to_qfr5 217728
qfisolvep_all 223048
quadpoly_i 241304
quadpoly_ii 243348
SL2_div_mul_e1 344317
nucomp 400722
parteucl 412328
qfbredsl2 519893
qfbsqr_i 698063
qfi_1 723347
qfi_1_by_disc 735375
qfrsolve_normform 770126
qfisqr0 793666
is_qfi 814212
qfb_inv 893729
qfbred_imag_1_b0 946835
quadpoly_bc 978723
qfbredsl2_real_basecase 979701
qfr3_comp 1009397
qfr3_compraw 1009397
setq_b0 1059756
qfr3_rho 1139446
qfr3_red 1172847
qfbpows 1318332
cornacchia2 1381739
qfbpow 1417991
cornacchia2_i 1421530
lastqi 1421530
qfisolve_normform 1445671
qfr5_comp 1735216
qfr5_compraw 1735230
check_qfbext 1840155
known_prime 1862947
pqfbred_1 1921185
qfr5_red 1952895
is_minimal 2046352
qfsolve_normform 2215797
normforms 2620771
REDB 2783988
qfbsolve_primitive 2828292
qfb_initrd 2838519
qfbsolve 2838528
qfbsolve_primitive_i 2843823
redimagsl2 4735457
lti2n 4940497
qfbredsl2_imag 5045771
qfbredsl2_imag_basecase 6636120
qfr5_rho 8486681
fix_expo 10217928
rhorealsl2 10810674
primeform_u 12316442
_rhorealsl2 13379357
_qfimul 13607714
REDBU 13961817
rho_get_BC 14152531
qfbpow_i 14517352
qfipow 15935231
dvmdii_round 16745809
ab_isreduced 17712973
qfbred_i 22414332
qfbred_imag 22468877
qfb_equal 23783630
qfbcomp_i 27390234
_qfisqr 31509715
qfb_sqr 33391331
qficomp0 72641037
qfb_comp 75386133
setq 95056844
qfbred_imag_1 96080205
qfbred_imag_av 96104691
qfbred_imag_basecase_av 96259506
qfb_maxexpi 101666840
sREDB 111703342
dvmdsu_round 111711864

Generated by: LCOV version 1.16