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 - gen1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21921-ca7d0c8) Lines: 1716 1833 93.6 %
Date: 2018-02-20 06:16:13 Functions: 88 88 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addTp 7
divfq 7
mulqf 14
addqf 21
kro_quad 21
Zp_nosquare_m1 28
divqf 28
mulRc_direct 35
conjvec 56
warn_coercion 77
addRq 490
mulcxpowIs 567
addsub_polmod 1232
mulqq 1295
divpT 1575
mulRq 1624
ser_normalize 7518
divTp 14063
quad_polmod_conj 16317
quad_polmod_norm 16317
div_scal_ser 25907
div_polmod_same 27019
sqr_polmod 33509
div_intmod_same 45269
mulcxmI 49266
Q_to_Fp 56580
inv_polmod 84539
sqr_ser_part 87881
mul_polmod 139832
mul_gen_rfrac 160830
mulTp 162528
fix_rfrac 202391
divpp 234981
div_rfrac_pol 261595
div_rfrac_scal 271015
add_ser_scal 280441
gsubsg 310950
addQp 380559
mul_ser_scal 405539
divRc 447833
div_ser_scal 459010
quad_polmod_mul 537776
div_ser 687834
mul_polmod_scal 790052
sub_intmod_same 990778
div_scal_rfrac 1004041
div_rfrac 1186502
addsub_pp 1188943
div_T_scal 1279968
ser_add 1361393
fill_ser 1715908
mul_polmod_same 1719547
mulpp 1796744
mulcIR 1928570
addsub_polmod_scal 1955904
mul_intmod_same 2065226
add_intmod_same 2079491
mulcxI 2183081
_serprec 2722009
add_rfrac 2972169
gconj 3676347
mulrfrac 3993862
divcR 4104341
gdivgs 7720297
mul_rfrac 7847054
add_rfrac_scal 8699569
div_scal_pol 9091841
rfrac_denom_mul_scal 9886319
div_scal_T 10072159
mul_rfrac_scal 10230993
gaddsg 12388851
addsub_frac 12590455
ginv 13783833
add_scal 15604635
gred_rfrac2 44411977
gmul2n 45978298
mulRc 53874937
addRc 56191844
gred_rfrac_simple 57219700
mul_scal 61073827
Qdivii 63876462
mulcc 74225800
gmulsg 91467069
gdiv 138717944
gsqr 990848898
gsub 1378922026
gadd 1680871144
gmul 3089737086

Generated by: LCOV version 1.11