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-03-29 08:06:26 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 2044
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 48024
qfbred 53099
qfbred0 54912
cornacchia 55219
GL2_qfb_equal 61068
pqfbred_basecase 66501
Qfb0 77224
qfbsqr 95638
qfbcomp 129398
pqfbred_iter_1 134615
pqfbred_rec 134615
primeform 135459
qfb_minexpi 136228
qfb3 144368
check_quaddisc 151513
qfr5_dist 184660
qfbredsl2_real 209526
qfr_to_qfr5 217700
qfisolvep_all 223017
quadpoly_i 241325
quadpoly_ii 243362
SL2_div_mul_e1 344317
nucomp 400722
parteucl 412328
qfbredsl2 519767
qfbsqr_i 698063
qfi_1 708157
qfi_1_by_disc 720115
qfrsolve_normform 770126
qfisqr0 793666
is_qfi 814212
qfb_inv 878122
qfbred_imag_1_b0 958774
quadpoly_bc 963477
qfbredsl2_real_basecase 979652
qfr3_comp 1009334
qfr3_compraw 1009334
setq_b0 1068296
cornacchia2 1088749
lastqi 1128546
cornacchia2_i 1128548
qfr3_rho 1139439
qfr3_red 1172756
qfbpows 1293669
qfbpow 1393166
qfisolve_normform 1445680
qfr5_comp 1735153
qfr5_compraw 1735167
check_qfbext 1806926
known_prime 1862911
qfr5_red 1952804
pqfbred_1 2065206
is_minimal 2201585
qfsolve_normform 2215806
normforms 2620771
REDB 2778583
qfbsolve_primitive 2828266
qfb_initrd 2838490
qfbsolve 2838498
qfbsolve_primitive_i 2843789
redimagsl2 4716531
qfbredsl2_imag 5026767
lti2n 5314748
qfbredsl2_imag_basecase 6617124
qfr5_rho 8486548
_qfimul 9583698
qfbpow_i 10082572
fix_expo 10217732
rhorealsl2 10810674
qfipow 11475626
primeform_u 12216466
REDBU 13377471
_rhorealsl2 13379252
rho_get_BC 14152279
dvmdii_round 16156054
ab_isreduced 17712399
qfbred_i 17881436
qfbred_imag 17935975
qfb_equal 23783632
_qfisqr 25409875
qfb_sqr 27275223
qfbcomp_i 27283640
qficomp0 62406347
qfb_comp 65147700
setq 80281628
qfbred_imag_av 81298145
qfbred_imag_1 81305014
qfbred_imag_basecase_av 81481997
qfb_maxexpi 86868252
sREDB 97193206
dvmdsu_round 97197548

Generated by: LCOV version 1.14