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 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.10.0 lcov report (development 22331-3e57e49) Lines: 850 926 91.8 %
Date: 2018-04-23 06:15:27 Functions: 93 100 93.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GL2_qfb_equal 899458
Qfb0 80850
REDB 2696491
REDBU 3421649
SL2_div_mul_e1 99575
SL2_swap_div_mul_e1 21049
ab_isreduced 24899124
check_quaddisc 2159309
check_quaddisc_imag 616
check_quaddisc_real 6608
cornacchia 105847
cornacchia2 1447299
cornacchia2_helper 1486177
cornacchia2_sqrt 40040
dvmdii_round 6118140
dvmdsu_round 211472957
fix_expo 12022346
get_disc 91
invraw 7
mul_nucomp 1029
mul_nudupl 2821
nucomp 319956
nudupl 2842
nupow 168
parteucl 322777
primeform 1758099
primeform_u 49393735
qfb_comp 50514730
qfb_sqr 80168783
qfbcompraw 2135
qfbpowraw 21
qfbred0 56
qfbredsl2 35
qfbsolve 3831744
qfbsolve_cornacchia 182924
qfi 94472
qfi_1 2665173
qfi_1_by_disc 2671816
qficomp 47775654
qficomp0 47777383
qficompraw 1729
qfipowraw 7
qfisolvep 2248862
qfisqr 77443964
qfisqr0 77443971
qfisqrraw 7
qfr 34258
qfr3_1 0
qfr3_comp 1006569
qfr3_init 21
qfr3_pow 4396
qfr3_red 1169242
qfr3_rho 6992791
qfr3_to_qfr 819882
qfr5_1 0
qfr5_comp 1730351
qfr5_dist 184254
qfr5_init 70
qfr5_pow 7
qfr5_red 1947344
qfr5_rho 10295698
qfr5_to_qfr 84
qfr_1 14
qfr_1_by_disc 6580
qfr_1_fill 0
qfr_data_init 2184
qfr_inv 1414
qfr_isreduced 17273016
qfr_to_qfr5 217021
qfrcomp 7
qfrcomp0 427
qfrcompraw 420
qfrpow 14
qfrpowraw 14
qfrsolvep 1582882
qfrsqr 14
qfrsqr0 21
qfrsqrraw 7
quadgen 0
quadgen0 266
quadpoly 7651
quadpoly0 707
quadpoly_bc 2679460
redimag 46175009
redimag_1 171543428
redimag_1_b0 916785
redimag_av 171717404
redimagsl2 1967301
redreal 42
redreal0 77
redrealnod 0
redrealsl2 2365832
redrealsl2step 2550268
rho_get_BC 17288489
rhoimag 7
rhoreal 0
rhorealnod 0
sREDB 211472957
setq 170577515
setq_b0 965913

Generated by: LCOV version 1.11