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 - modules - krasner.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16624-25b9976) Lines: 441 448 98.4 %
Date: 2014-06-24 Functions: 35 35 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 198 234 84.6 %

Function Name Sort by function name Hit count Sort by hit count
CloneFieldData 440
CycloPol 1175
DivideByPi 250102
FieldData 440
FqX_FpXQ_eval 31888
FreeFieldData 440
FreeRootTable 55
GetRamifiedPol 1195
GetSharp 34582
InitSieve 355
IsIsomorphic 9471
NbConjugateFields 440
NextZeroValue 555
NumberExtensions 1195
Quick_FqX_roots 34657
RandomFF 26136
RandomPol 1848
RootCongruents 51275
RootCountingAlgorithm 16693
SetSieveValue 795
StructureOmega 55
TamelyRamifiedCase 1120
VerifyOre 15
WildlyRamifiedCase 55
ZXY_z_eval 34657
ZX_z_eval 141087
ceildiv 1195
function_l 155
get_pk 55
get_topx 2115
padicfields 5
padicfields0 340
pols_from_efj 340
possible_efj 335
possible_efj_by_d 5

Generated by: LCOV version 1.9