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-bordeaux1.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.8.0 lcov report (development 16375-9f41ae0) Lines: 818 883 92.6 %
Date: 2014-04-19 Functions: 92 96 95.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 409 550 74.4 %

Function Name Sort by function name Hit count Sort by hit count
GL2_qfb_equal 841832
Qfb0 70287
REDB 2610064
REDBU 3237539
SL2_div_mul_e1 99580
SL2_swap_div_mul_e1 21068
ab_isreduced 24662538
check_quaddisc 82379
check_quaddisc_imag 0
check_quaddisc_real 6667
cornacchia 96204
cornacchia2 1390873
dvmdii_round 5847603
dvmdsu_round 28249789
fix_expo 12024485
get_disc 119
invraw 7
mul_nucomp 147
mul_nudupl 322
nucomp 175
nudupl 336
nupow 21
parteucl 497
primeform 1675560
primeform_u 3295904
qfb_comp 10483421
qfb_sqr 137406
qfbcompraw 14
qfbpowraw 21
qfbred0 56
qfbsolve 3658276
qfbsolve_cornacchia 173730
qfi 84013
qfi_1 14
qfi_1_by_disc 6548
qficomp 7743875
qficomp0 7743889
qficompraw 14
qfipowraw 7
qfisolvep 2126922
qfisqr 78170
qfisqr0 78177
qfisqrraw 7
qfr 34245
qfr3_1 0
qfr3_comp 1007506
qfr3_init 35
qfr3_pow 4403
qfr3_red 1170419
qfr3_rho 6996442
qfr3_to_qfr 794883
qfr5_1 0
qfr5_comp 1731991
qfr5_dist 184529
qfr5_init 84
qfr5_pow 7
qfr5_red 1949130
qfr5_rho 10296234
qfr5_to_qfr 112
qfr_1 14
qfr_1_by_disc 6611
qfr_1_fill 0
qfr_data_init 2191
qfr_inv 3592
qfr_isreduced 17278130
qfr_to_qfr5 217174
qfrcomp 7
qfrcomp0 35
qfrcompraw 28
qfrpow 14
qfrpowraw 21
qfrsolvep 1531354
qfrsqr 14
qfrsqr0 28
qfrsqrraw 14
quadgen 224
quadpoly 637
quadpoly0 392
quadpoly_bc 7178
redimag 153550
redimag_1 7884633
redimag_1_b0 1461
redimag_av 7976092
redimagsl2 1853302
redreal 49
redreal0 105
redrealnod 7
redrealsl2 2291058
redrealsl2step 2503953
rho_get_BC 17292676
rhoimag 7
rhoreal 7
rhorealnod 7
sREDB 28249789
setq 7873247
setq_b0 11386

Generated by: LCOV version 1.9