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.2 lcov report (development 29115-f22e516b23) Lines: 1102 1224 90.0 %
Date: 2024-04-25 08:08:21 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 77224
REDB 2778583
REDBU 13380429
SL2_div_mul_e1 344319
_qfimul 9583769
_qfimulraw 7
_qfisqr 25409900
_qfisqrraw 7
_rhorealsl2 13379252
ab_isreduced 17712399
allsols 48024
check_qfbext 1806965
check_quaddisc 151513
check_quaddisc_imag 2170
check_quaddisc_real 6916
cornacchia 55249
cornacchia2 1088747
cornacchia2_i 1128547
cornacchia2_sqrt 40677
dvmdii_round 16159012
dvmdsu_round 97223948
famat_divsqr 5299
fix_expo 10217732
is_minimal 2201585
is_qfi 814212
known_prime 1862924
lastqi 1128550
lti2n 5314748
mul_nucomp 4739
mul_nudupl 11606
normforms 2620769
nucomp 400722
nudupl 11648
nupow 1008
parteucl 412328
pqfbred_1 2065206
pqfbred_basecase 66501
pqfbred_iter_1 134615
pqfbred_rec 134615
primeform 135459
primeform_u 12218169
qfb3 144368
qfb_1 0
qfb_comp 65159245
qfb_comp_gen 84
qfb_equal 23783631
qfb_initrd 2838498
qfb_inv 878168
qfb_maxexpi 86888528
qfb_minexpi 136228
qfb_sqr 27275367
qfbcomp 129398
qfbcomp_i 27293876
qfbcompraw 2198
qfbcompraw_i 0
qfbcornacchia 7630
qfbinv 7
qfbpow 1393231
qfbpow_i 10082572
qfbpowraw 21
qfbpows 1293713
qfbred 53072
qfbred0 54885
qfbred_i 17881503
qfbred_imag 17936015
qfbred_imag_1 81313907
qfbred_imag_1_b0 958705
qfbred_imag_av 81319109
qfbred_imag_basecase_av 81485470
qfbred_real 63
qfbred_real_basecase_i 427
qfbred_real_i 427
qfbredsl2 519767
qfbredsl2_imag 5027592
qfbredsl2_imag_basecase 6617940
qfbredsl2_real 209526
qfbredsl2_real_basecase 979652
qfbsolve 2838505
qfbsolve_all 10227
qfbsolve_primitive 2828273
qfbsolve_primitive_i 2843798
qfbsqr 95638
qfbsqr_i 698063
qfi_1 708157
qfi_1_by_disc 720115
qficomp0 62417404
qfipow 11475691
qfipowraw 7
qfisolve_normform 1445674
qfisolvep 0
qfisolvep_all 223036
qfisqr0 793666
qfr3_1 0
qfr3_comp 1009334
qfr3_compraw 1009334
qfr3_init 371
qfr3_pow 4557
qfr3_powraw 0
qfr3_red 1172756
qfr3_rho 1139439
qfr3_to_qfr 31920
qfr5_1 0
qfr5_comp 1735153
qfr5_compraw 1735167
qfr5_dist 184660
qfr5_init 140
qfr5_pow 21
qfr5_powraw 7
qfr5_red 1952804
qfr5_rho 8486548
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 217700
qfrcomp0 441
qfrinvraw 7
qfrpow 112
qfrpowraw 14
qfrsolve_normform 770126
qfrsolvep 0
qfrsqr0 35
qfsolve_normform 2215801
quadgen 0
quadgen0 560
quadpoly 2044
quadpoly0 1036
quadpoly_bc 963477
quadpoly_i 241325
quadpoly_ii 243362
redimagsl2 4717352
rho_get_BC 14152279
rhoimag 7
rhorealsl2 10810674
sREDB 97217610
setq 80292501
setq_b0 1068294

Generated by: LCOV version 1.14