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 - polarit1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23171-a5c0ed393) Lines: 309 320 96.6 %
Date: 2018-10-20 05:38:07 Functions: 30 30 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
rem_scal_scal 14
ZXV_to_ZpXQV 28
ZX_Zp_roots 35
QpXQX_to_ZXY 42
ZXY_ZpQ_root 42
Zp_appr 42
rootpadic 42
ZV_to_ZpV 49
famat_flatten 49
getprec 84
padicappr 84
rem_pol_scal 126
scalar_getprec 210
poldivrem 259
check_padic_p 336
ZX_Zp_root 364
factorpadic 497
pnormalize 497
QpX_to_ZX 574
gdeuc 574
get_padic_content 616
ZpX_to_ZX 637
ZX_to_ZpX_normalized 1078
ZX_to_ZpX 1120
cmp_padic 2688
Zp_to_Z 3969
Z_to_Zp 4060
polmod_mod 53711
rem_scal_pol 1817315
grem 4511739

Generated by: LCOV version 1.13