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 - gen1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17566-be4cfd0) Lines: 1774 1937 91.6 %
Date: 2015-02-27 Functions: 88 88 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1180 1442 81.8 %

Function Name Sort by function name Hit count Sort by hit count
Zp_nosquare_m1 28
addQp 93879
addRc 32194954
addRq 602
addTp 7
add_intmod_same 1012480
add_rfrac 2781648
add_rfrac_scal 8350026
add_scal 13505219
add_ser_scal 4333
addqf 14
addsub_frac 17231894
addsub_polmod 973
addsub_polmod_scal 2720698
addsub_pp 930265
conjvec 42
divRc 221782
divTp 63
div_T_scal 785522
div_intmod_same 28129
div_polmod_same 31941
div_rfrac 1186343
div_rfrac_pol 253113
div_rfrac_scal 270660
div_scal_T 9140603
div_scal_pol 8185700
div_scal_rfrac 1004057
div_scal_ser 581
div_ser 267204
div_ser_scal 5523
divcR 1702636
divfq 7
divpT 889
divpp 50171
divqf 28
ff_poltype 28371
fill_ser 116334
fix_rfrac 155491
gadd 812607374
gaddsg 2664395
gconj 537561
gdiv 87758955
gdivgs 4163614
ginv 7248437
gmul 2367225733
gmul2n 29679956
gmulsg 16059889
gred_frac2 13428878
gred_rfrac2 18170652
gred_rfrac2_i 43366249
gred_rfrac_simple 54135184
gsqr 872483488
gsub 1393332734
gsubsg 296333
inv_polmod 23741
kro_quad 21
mulRc 40761478
mulRc_direct 35
mulRq 1834
mulTp 77984
mul_gen_rfrac 160830
mul_intmod_same 2446887
mul_polmod 1386
mul_polmod_same 1636168
mul_polmod_scal 1162470
mul_rfrac 7743974
mul_rfrac_scal 9454550
mul_scal 54997495
mul_ser_scal 188350
mulcIR 724607
mulcc 49021762
mulcxI 1742517
mulcxmI 47852
mulpp 1144878
mulqf 14
mulqq 1344
mulrfrac 995374
quad_polmod_conj 13433
quad_polmod_mul 1013119
quad_polmod_norm 13433
rfrac_denom_mul_scal 9405293
ser_add 36968
ser_normalize 56
serprec 73194
sqr_polmod 22347
sqr_ser_part 4242
sub_intmod_same 122234
warn_coercion 70

Generated by: LCOV version 1.9