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 17097-9391e68) Lines: 835 904 92.4 %
Date: 2014-11-21 Functions: 91 97 93.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 422 567 74.4 %

Function Name Sort by function name Hit count Sort by hit count
GL2_qfb_equal 642470
Qfb0 50210
REDB 2609379
REDBU 2444035
SL2_div_mul_e1 71125
SL2_swap_div_mul_e1 15035
ab_isreduced 17785086
check_quaddisc 59475
check_quaddisc_imag 315
check_quaddisc_real 4720
cornacchia 68085
cornacchia2 1041757
dvmdii_round 5053414
dvmdsu_round 19530620
fix_expo 8587390
get_disc 65
invraw 5
mul_nucomp 80
mul_nudupl 200
nucomp 90
nudupl 205
nupow 10
parteucl 290
primeform 1255785
primeform_u 2418999
qfb_comp 7523895
qfb_sqr 112752
qfbcompraw 1525
qfbpowraw 15
qfbred0 40
qfbredsl2 25
qfbsolve 2729440
qfbsolve_cornacchia 123140
qfi 59950
qfi_1 180
qfi_1_by_disc 4815
qficomp 5567413
qficomp0 5568648
qficompraw 1235
qfipowraw 5
qfisolvep 1598810
qfisqr 69570
qfisqr0 69575
qfisqrraw 5
qfr 24460
qfr3_1 0
qfr3_comp 718977
qfr3_init 15
qfr3_pow 3140
qfr3_red 835172
qfr3_rho 4994849
qfr3_to_qfr 585630
qfr5_1 0
qfr5_comp 1235965
qfr5_dist 131610
qfr5_init 50
qfr5_pow 5
qfr5_red 1390960
qfr5_rho 7354070
qfr5_to_qfr 60
qfr_1 10
qfr_1_by_disc 4700
qfr_1_fill 0
qfr_data_init 1560
qfr_inv 2555
qfr_isreduced 12337866
qfr_to_qfr5 155015
qfrcomp 5
qfrcomp0 305
qfrcompraw 300
qfrpow 10
qfrpowraw 10
qfrsolvep 1130630
qfrsqr 10
qfrsqr0 15
qfrsqrraw 5
quadgen 150
quadpoly 465
quadpoly0 300
quadpoly_bc 5275
redimag 162991
redimag_1 5709037
redimag_1_b0 2452
redimag_av 5800264
redimagsl2 1405215
redreal 30
redreal0 55
redrealnod 0
redrealsl2 1689880
redrealsl2step 1821620
rho_get_BC 12348919
rhoimag 5
rhoreal 0
rhorealnod 0
sREDB 19530620
setq 5697315
setq_b0 11722

Generated by: LCOV version 1.9