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 16791-0d1274a) Lines: 817 884 92.4 %
Date: 2014-09-16 Functions: 92 96 95.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 410 552 74.3 %

Function Name Sort by function name Hit count Sort by hit count
GL2_qfb_equal 642470
Qfb0 50205
REDB 2609379
REDBU 2443220
SL2_div_mul_e1 71125
SL2_swap_div_mul_e1 15035
ab_isreduced 17793871
check_quaddisc 58890
check_quaddisc_imag 0
check_quaddisc_real 4740
cornacchia 68085
cornacchia2 1041742
dvmdii_round 5052599
dvmdsu_round 19508128
fix_expo 8593200
get_disc 85
invraw 5
mul_nucomp 105
mul_nudupl 230
nucomp 125
nudupl 240
nupow 15
parteucl 355
primeform 1255790
primeform_u 2414501
qfb_comp 7502787
qfb_sqr 111782
qfbcompraw 1525
qfbpowraw 15
qfbred0 40
qfbsolve 2729440
qfbsolve_cornacchia 123140
qfi 59980
qfi_1 185
qfi_1_by_disc 4825
qficomp 5544205
qficomp0 5545440
qficompraw 1235
qfipowraw 5
qfisolvep 1598810
qfisqr 69280
qfisqr0 69285
qfisqrraw 5
qfr 24490
qfr3_1 0
qfr3_comp 719657
qfr3_init 25
qfr3_pow 3145
qfr3_red 836007
qfr3_rho 4997784
qfr3_to_qfr 585625
qfr5_1 0
qfr5_comp 1237375
qfr5_dist 131790
qfr5_init 60
qfr5_pow 5
qfr5_red 1392560
qfr5_rho 7358470
qfr5_to_qfr 80
qfr_1 10
qfr_1_by_disc 4700
qfr_1_fill 0
qfr_data_init 1565
qfr_inv 2555
qfr_isreduced 12346751
qfr_to_qfr5 155210
qfrcomp 5
qfrcomp0 315
qfrcompraw 310
qfrpow 10
qfrpowraw 15
qfrsolvep 1130630
qfrsqr 10
qfrsqr0 20
qfrsqrraw 10
quadgen 160
quadpoly 450
quadpoly0 275
quadpoly_bc 5270
redimag 111396
redimag_1 5634009
redimag_1_b0 989
redimag_av 5725236
redimagsl2 1404850
redreal 35
redreal0 75
redrealnod 5
redrealsl2 1689870
redrealsl2step 1821620
rho_get_BC 12356254
rhoimag 5
rhoreal 5
rhorealnod 5
sREDB 19508128
setq 5625756
setq_b0 8253

Generated by: LCOV version 1.9