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 30107-5d3c5ac62a) Lines: 1102 1224 90.0 %
Date: 2025-04-01 09:20:36 Functions: 131 140 93.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GL2_qfb_equal 61068
Qfb0 77231
REDB 2783988
REDBU 13956067
SL2_div_mul_e1 344318
_qfimul 13525395
_qfimulraw 7
_qfisqr 31340670
_qfisqrraw 7
_rhorealsl2 13379357
ab_isreduced 17712973
allsols 48029
check_qfbext 1826057
check_quaddisc 151545
check_quaddisc_imag 2177
check_quaddisc_real 6916
cornacchia 55267
cornacchia2 1381740
cornacchia2_i 1416262
cornacchia2_sqrt 35413
dvmdii_round 16740056
dvmdsu_round 111311520
famat_divsqr 5299
fix_expo 10217928
is_minimal 2046352
is_qfi 814212
known_prime 1862958
lastqi 1416259
lti2n 4940497
mul_nucomp 4739
mul_nudupl 11606
normforms 2620772
nucomp 400722
nudupl 11648
nupow 1008
parteucl 412328
pqfbred_1 1921185
pqfbred_basecase 61492
pqfbred_iter_1 124020
pqfbred_rec 124020
primeform 135445
primeform_u 12281535
qfb3 139081
qfb_1 0
qfb_comp 75081051
qfb_comp_gen 84
qfb_equal 23783632
qfb_initrd 2838526
qfb_inv 888211
qfb_maxexpi 101202692
qfb_minexpi 125056
qfb_sqr 33214699
qfbcomp 130651
qfbcomp_i 27339875
qfbcompraw 2198
qfbcompraw_i 0
qfbcornacchia 7630
qfbinv 7
qfbpow 1411835
qfbpow_i 14418813
qfbpowraw 21
qfbpows 1313406
qfbred 53009
qfbred0 54822
qfbred_i 22280774
qfbred_imag 22335222
qfbred_imag_1 95634387
qfbred_imag_1_b0 945904
qfbred_imag_av 95642537
qfbred_imag_basecase_av 95814497
qfbred_real 63
qfbred_real_basecase_i 427
qfbred_real_i 427
qfbredsl2 519893
qfbredsl2_imag 5043926
qfbredsl2_imag_basecase 6634268
qfbredsl2_real 209575
qfbredsl2_real_basecase 979701
qfbsolve 2838535
qfbsolve_all 10227
qfbsolve_primitive 2828298
qfbsolve_primitive_i 2843830
qfbsqr 93685
qfbsqr_i 697195
qfi_1 719014
qfi_1_by_disc 730958
qficomp0 72336280
qfipow 15830536
qfipowraw 7
qfisolve_normform 1445671
qfisolvep 0
qfisolvep_all 223057
qfisqr0 790845
qfr3_1 0
qfr3_comp 1009397
qfr3_compraw 1009397
qfr3_init 371
qfr3_pow 4557
qfr3_powraw 0
qfr3_red 1172847
qfr3_rho 1139446
qfr3_to_qfr 31920
qfr5_1 0
qfr5_comp 1735216
qfr5_compraw 1735230
qfr5_dist 184688
qfr5_init 140
qfr5_pow 21
qfr5_powraw 7
qfr5_red 1952895
qfr5_rho 8486681
qfr5_to_qfr 483
qfr_1 35
qfr_1_by_disc 6867
qfr_1_fill 0
qfr_data_init 2170
qfr_disc 35
qfr_to_qfr5 217728
qfrcomp0 441
qfrinvraw 7
qfrpow 112
qfrpowraw 14
qfrsolve_normform 770126
qfrsolvep 0
qfrsqr0 35
qfsolve_normform 2215797
quadgen 0
quadgen0 560
quadpoly 2030
quadpoly0 1015
quadpoly_bc 974285
quadpoly_i 241304
quadpoly_ii 243327
redimagsl2 4733609
rho_get_BC 14152531
rhoimag 7
rhorealsl2 10810674
sREDB 111302144
setq 94615175
setq_b0 1057876

Generated by: LCOV version 1.16