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 - kernel/none - mp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21913-852521c) Lines: 1113 1148 97.0 %
Date: 2018-02-19 06:15:51 Functions: 69 69 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
pari_kernel_close 645
pari_kernel_init 647
sqrispec_fft 1179
incneg 4701
muliispec_fft 10617
muliifft_unspliti 11796
mulliifft_params 11796
muliifft_spliti 22413
resetloop 127959
Zf_sqr 268416
convi 288667
divis 290943
sqrtispec2_sh 295083
floorr 368868
diviuuexact 402774
muluui 419430
addumului 442383
convi_dac 1066611
truncr 1286787
setloop 1871478
Zf_mul 2108928
sqrtispec1_sh 2253497
muliifft_dis 2365548
sqrtremi 2609954
muliifft_dit 4463859
remi2n 6724143
mantissa2nr 9816552
divri 13952628
diviuexact_i 16346802
sqrtr_abs 16596696
xmpn_zero 16596696
sqrtispec2 16658067
p_sqrtu2 16953150
red_montgomery 18204861
p_sqrtu1 19206647
incpos 19655136
incloop 19687623
divis_rem 22512564
diviuexact 25439508
Zf_add 28695552
Zf_mulsqrt2 28695552
Zf_sub 29030475
Zf_shift 30480123
sqrtispec 51068748
Zf_red_destroy 59040510
divrr 68645079
catii 68821362
equaliispec 81974834
affir 90092496
diviu_rem 105493356
addshiftw 126426876
adduispec_offset 138455064
int_normalize 159632952
xmpn_copy 162146739
diviiexact 198598515
roundr_up_ip 235970765
shiftispec 390047827
dvmdii 514475230
sqrispec_basecase 572212473
sqrispec 575904537
subiuspec 683885618
adduispec 867950477
umodiu 969661285
subiispec 1317017617
cmpiispec 1693705462
addiispec 1719991906
muluispec 1742015462
muliispec_basecase 1774560877
muliispec 1817672761

Generated by: LCOV version 1.11