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 21352-4be8729) Lines: 850 926 91.8 %
Date: 2017-11-23 06:21:03 Functions: 93 100 93.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
qfr3_1 0
qfr5_1 0
qfr_1_fill 0
quadgen 0
redrealnod 0
rhoreal 0
rhorealnod 0
invraw 7
qfipowraw 7
qfisqrraw 7
qfr5_pow 7
qfrcomp 7
qfrsqrraw 7
rhoimag 7
qfr_1 14
qfrpow 14
qfrpowraw 14
qfrsqr 14
qfbpowraw 21
qfr3_init 21
qfrsqr0 21
qfbredsl2 35
redreal 42
qfbred0 56
qfr5_init 70
redreal0 77
qfr5_to_qfr 84
get_disc 91
nupow 168
quadgen0 266
qfrcompraw 420
qfrcomp0 427
check_quaddisc_imag 616
quadpoly0 707
mul_nucomp 1029
qfr_inv 1414
qficompraw 1729
qfbcompraw 2135
qfr_data_init 2184
mul_nudupl 2821
nudupl 2842
qfr3_pow 4396
qfr_1_by_disc 6580
check_quaddisc_real 6608
quadpoly 7735
SL2_swap_div_mul_e1 21049
cornacchia2_sqrt 34027
qfr 34244
Qfb0 80822
qfi 94458
SL2_div_mul_e1 99575
cornacchia 105847
qfbsolve_cornacchia 182924
qfr5_dist 184254
qfr_to_qfr5 217021
nucomp 319956
parteucl 322777
qfr3_to_qfr 819882
GL2_qfb_equal 899458
qfr3_comp 1006569
redimag_1_b0 1126694
qfr3_red 1169242
setq_b0 1175025
cornacchia2 1447285
cornacchia2_helper 1480150
qfrsolvep 1582882
qfr5_comp 1730351
primeform 1758099
qfr5_red 1947344
redimagsl2 1967301
check_quaddisc 2069352
qfisolvep 2248862
redrealsl2 2365832
qfi_1 2548438
redrealsl2step 2550268
qfi_1_by_disc 2555081
quadpoly_bc 2562809
REDB 2696491
REDBU 3421649
qfbsolve 3831744
dvmdii_round 6118140
qfr3_rho 6992791
qfr5_rho 10295698
fix_expo 12022346
qfr_isreduced 17273016
rho_get_BC 17288489
ab_isreduced 24899124
redimag 45276717
qficomp 45966677
qficomp0 45968406
primeform_u 48183822
qfb_comp 48705753
qfisqr 74006588
qfisqr0 74006595
qfb_sqr 76614166
setq 164223758
redimag_1 165398783
redimag_av 165572759
dvmdsu_round 203721484
sREDB 203721484

Generated by: LCOV version 1.11