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 16624-25b9976) Lines: 817 884 92.4 %
Date: 2014-06-24 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 584844
Qfb0 50205
REDB 2610068
REDBU 2260251
SL2_div_mul_e1 71130
SL2_swap_div_mul_e1 15054
ab_isreduced 17544986
check_quaddisc 58926
check_quaddisc_imag 0
check_quaddisc_real 4771
cornacchia 68977
cornacchia2 1043205
dvmdii_round 4870319
dvmdsu_round 19507066
fix_expo 8587205
get_disc 85
invraw 5
mul_nucomp 105
mul_nudupl 230
nucomp 125
nudupl 240
nupow 15
parteucl 355
primeform 1173244
primeform_u 2332211
qfb_comp 7502596
qfb_sqr 111634
qfbcompraw 1537
qfbpowraw 15
qfbred0 40
qfbsolve 2566500
qfbsolve_cornacchia 124474
qfi 60021
qfi_1 185
qfi_1_by_disc 4863
qficomp 5544351
qficomp0 5545598
qficompraw 1247
qfipowraw 5
qfisolvep 1487398
qfisqr 69169
qfisqr0 69174
qfisqrraw 5
qfr 24449
qfr3_1 0
qfr3_comp 719642
qfr3_init 25
qfr3_pow 3145
qfr3_red 836015
qfr3_rho 4997326
qfr3_to_qfr 560633
qfr5_1 0
qfr5_comp 1237041
qfr5_dist 131813
qfr5_init 60
qfr5_pow 5
qfr5_red 1392106
qfr5_rho 7352846
qfr5_to_qfr 80
qfr_1 10
qfr_1_by_disc 4731
qfr_1_fill 0
qfr_data_init 1565
qfr_inv 2570
qfr_isreduced 12339426
qfr_to_qfr5 155090
qfrcomp 5
qfrcomp0 315
qfrcompraw 310
qfrpow 10
qfrpowraw 15
qfrsolvep 1079102
qfrsqr 10
qfrsqr0 20
qfrsqrraw 10
quadgen 160
quadpoly 455
quadpoly0 280
quadpoly_bc 5313
redimag 111393
redimag_1 5633811
redimag_1_b0 1004
redimag_av 5725268
redimagsl2 1291362
redreal 35
redreal0 75
redrealnod 5
redrealsl2 1615110
redrealsl2step 1775305
rho_get_BC 12350172
rhoimag 5
rhoreal 5
rhorealnod 5
sREDB 19507066
setq 5625546
setq_b0 8265

Generated by: LCOV version 1.9