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 - modules - krasner.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 434 442 98.2 %
Date: 2017-03-30 05:32:39 Functions: 34 34 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
CloneFieldData 528
DivideByPi 323880
FieldData 528
FqX_FpXQ_eval 33840
FreeFieldData 528
FreeRootTable 66
GetRamifiedPol 1434
GetSharp 41766
InitSieve 426
IsIsomorphic 11562
NbConjugateFields 528
NextZeroValue 666
NumberExtensions 1434
Quick_FqX_roots 41742
RandomFF 30678
RandomPol 1998
RootCongruents 60354
RootCountingAlgorithm 18588
SetSieveValue 954
StructureOmega 66
TamelyRamifiedCase 1344
VerifyOre 18
WildlyRamifiedCase 66
ZXY_z_eval 41742
ZX_z_eval 174882
function_l 186
get_pk 66
get_topx 2538
padicfields 6
padicfields0 408
pols_from_efj 408
possible_efj 402
possible_efj_by_d 6
setUnramData 1410

Generated by: LCOV version 1.11