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 28676-df828f1c94) Lines: 985 1066 92.4 %
Date: 2023-08-26 07:54:43 Functions: 119 128 93.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GL2_qfb_equal 61068
Qfb0 77189
REDB 2768824
REDBU 5297847
SL2_div_mul_e1 344317
_qfimul 9584145
_qfimulraw 7
_qfisqr 25411389
_qfisqrraw 7
_rhorealsl2 13379288
ab_isreduced 20824064
allsols 48030
check_qfbext 1806951
check_quaddisc 151505
check_quaddisc_imag 2170
check_quaddisc_real 6916
cornacchia 55247
cornacchia2 1088775
cornacchia2_i 1128547
cornacchia2_sqrt 40677
dvmdii_round 8066672
dvmdsu_round 97116709
famat_divsqr 5299
fix_expo 12022738
is_qfi 814212
known_prime 1862952
lastqi 1128542
mul_nucomp 4739
mul_nudupl 11606
normforms 2620772
nucomp 400722
nudupl 11648
nupow 1008
parteucl 412328
primeform 135459
primeform_u 12209801
qfb3 77161
qfb_1 0
qfb_comp 65104091
qfb_comp_gen 84
qfb_equal 23783633
qfb_initrd 2838526
qfb_inv 878200
qfb_sqr 27276676
qfbcomp 129398
qfbcomp_i 27253080
qfbcompraw 2191
qfbcompraw_i 0
qfbcornacchia 7630
qfbinv 7
qfbpow 1393364
qfbpow_i 10082572
qfbpowraw 21
qfbpows 1293856
qfbred 52978
qfbred0 54770
qfbred_i 17881610
qfbredsl2 519693
qfbsolve 2838530
qfbsolve_all 10227
qfbsolve_primitive 2828299
qfbsolve_primitive_i 2843826
qfbsqr 95617
qfbsqr_i 698063
qfi_1 708157
qfi_1_by_disc 720115
qficomp0 62377609
qfipow 11475802
qfipowraw 7
qfisolve_normform 1445672
qfisolvep 0
qfisolvep_all 223057
qfisqr0 793666
qfr3_1 0
qfr3_comp 1006919
qfr3_compraw 1006919
qfr3_init 364
qfr3_pow 4529
qfr3_powraw 0
qfr3_red 1169914
qfr3_rho 6994478
qfr3_to_qfr 31913
qfr5_1 0
qfr5_comp 1730400
qfr5_compraw 1730414
qfr5_dist 184254
qfr5_init 140
qfr5_pow 28
qfr5_powraw 7
qfr5_red 1947428
qfr5_rho 10296041
qfr5_to_qfr 462
qfr_1 35
qfr_1_by_disc 6867
qfr_1_fill 0
qfr_data_init 2170
qfr_disc 35
qfr_isreduced 17275795
qfr_to_qfr5 217084
qfrcomp0 441
qfrinvraw 7
qfrpow 133
qfrpowraw 14
qfrsolve_normform 770126
qfrsolvep 0
qfrsqr0 14
qfsolve_normform 2215798
quadgen 0
quadgen0 560
quadpoly 2044
quadpoly0 1036
quadpoly_bc 963470
quadpoly_i 241318
quadpoly_ii 243355
redimag 17936010
redimag_1 81283694
redimag_1_b0 959095
redimag_av 81243559
redimagsl2 1933539
redreal 42
redreal_i 399
redrealsl2 979655
rho_get_BC 17290519
rhoimag 7
rhorealsl2 10810674
sREDB 97115345
setq 80267431
setq_b0 1068678

Generated by: LCOV version 1.14