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 to exceed 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.12.0 lcov report (development 23353-42c433a02) Lines: 849 976 87.0 %
Date: 2018-12-15 05:41:59 Functions: 94 105 89.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
SL2_swap_div_mul_e1 0
qfbsolve_cornacchia 0
qfisolvep 0
qfr3_1 0
qfr5_1 0
qfr_1_fill 0
qfrsolvep 0
quadgen 0
redrealnod 0
rhoreal 0
rhorealnod 0
invraw 7
qfipowraw 7
qfisqrraw 7
qfr5_pow 7
qfrsqrraw 7
rhoimag 7
qfr_1 14
qfrpow 14
qfrpowraw 14
qfrsqr 14
qfbpowraw 21
qfr3_init 21
qfrcomp 21
qfrsqr0 21
qfbredsl2 35
cornacchia 42
qfbred0 56
redreal 56
qfr5_init 84
redreal0 91
qfr5_to_qfr 98
get_disc 105
nupow 168
quadgen0 322
qfrcompraw 420
qfrcomp0 441
check_quaddisc_imag 623
quadpoly0 756
mul_nucomp 1029
qfr_inv 1414
qficompraw 1729
qfbcompraw 2135
qfr_data_init 2184
mul_nudupl 2821
nudupl 2842
qfr3_pow 4396
qfr_1_by_disc 6839
check_quaddisc_real 6867
quadpoly 10696
qfr3_to_qfr 31430
cornacchia2_sqrt 40040
primeform 70035
Qfb0 80934
qfr5_dist 184254
qfr_to_qfr5 217035
nucomp 319956
parteucl 322777
SL2_div_mul_e1 371014
redsl2 612731
qfrsolve_normform 769258
qfr 803957
redimag_1_b0 916755
setq_b0 965681
redrealsl2 976822
qfr3_comp 1006569
qfr3_red 1169242
cornacchia2 1344358
cornacchia2_helper 1384409
GL2_qfb_equal 1646008
qfisolve_normform 1646008
qfr5_comp 1730351
qfi 1740123
qfr5_red 1947358
redimagsl2 2083508
check_quaddisc 2178118
qfi_1 2683681
qfi_1_by_disc 2690450
REDB 2696491
quadpoly_bc 2701139
normforms 2804620
qfbsolve 2804620
qfbsolven 2804620
REDBU 5773236
qfr3_rho 6992791
redrealsl2step 7077973
dvmdii_round 8469727
qfr5_rho 10295726
fix_expo 12022374
qfr_isreduced 17273058
rho_get_BC 17288517
ab_isreduced 20813847
redimag 46489050
qficomp 48013205
qficomp0 48014934
primeform_u 48019480
qfb_comp 50752295
qfisqr 77936428
qfisqr0 77936435
qfb_sqr 80679611
setq 171621789
redimag_1 172587470
redimag_av 172761446
dvmdsu_round 212696724
sREDB 212696724

Generated by: LCOV version 1.13