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 20459-9710128) Lines: 843 926 91.0 %
Date: 2017-03-30 05:32:39 Functions: 92 100 92.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GL2_qfb_equal 770964
Qfb0 69288
REDB 35262
REDBU 2932842
SL2_div_mul_e1 85350
SL2_swap_div_mul_e1 18042
ab_isreduced 21342105
check_quaddisc 1543512
check_quaddisc_imag 522
check_quaddisc_real 5664
cornacchia 90738
cornacchia2 1240656
cornacchia2_helper 1239660
cornacchia2_sqrt 0
dvmdii_round 2968104
dvmdsu_round 156705414
fix_expo 10304868
get_disc 78
invraw 6
mul_nucomp 882
mul_nudupl 2418
nucomp 274248
nudupl 2436
nupow 144
parteucl 276666
primeform 1506942
primeform_u 33510676
qfb_comp 38391039
qfb_sqr 56143263
qfbcompraw 1830
qfbpowraw 18
qfbred0 48
qfbredsl2 30
qfbsolve 3284364
qfbsolve_cornacchia 156804
qfi 80976
qfi_1 1874052
qfi_1_by_disc 1879746
qficomp 36043260
qficomp0 36044742
qficompraw 1482
qfipowraw 6
qfisolvep 1927608
qfisqr 54165975
qfisqr0 54165981
qfisqrraw 6
qfr 29352
qfr3_1 0
qfr3_comp 862773
qfr3_init 18
qfr3_pow 3768
qfr3_red 1002207
qfr3_rho 5993820
qfr3_to_qfr 702756
qfr5_1 0
qfr5_comp 1483158
qfr5_dist 157932
qfr5_init 60
qfr5_pow 6
qfr5_red 1669152
qfr5_rho 8824884
qfr5_to_qfr 72
qfr_1 12
qfr_1_by_disc 5640
qfr_1_fill 0
qfr_data_init 1872
qfr_inv 1212
qfr_isreduced 14805441
qfr_to_qfr5 186018
qfrcomp 6
qfrcomp0 366
qfrcompraw 360
qfrpow 12
qfrpowraw 12
qfrsolvep 1356756
qfrsqr 12
qfrsqr0 18
qfrsqrraw 6
quadgen 0
quadgen0 222
quadpoly 1476
quadpoly0 600
quadpoly_bc 1881216
redimag 30719850
redimag_1 121169259
redimag_1_b0 66333
redimag_av 121205751
redimagsl2 1686258
redreal 36
redreal0 66
redrealnod 0
redrealsl2 2027856
redrealsl2step 2185944
rho_get_BC 14818704
rhoimag 6
rhoreal 0
rhorealnod 0
sREDB 156705414
setq 120902092
setq_b0 267167

Generated by: LCOV version 1.11