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 - basemath - elltors.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21703-2e13792) Lines: 392 403 97.3 %
Date: 2018-01-17 06:18:31 Functions: 22 24 91.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
elltors0 0
orderell 0
ptor0 35
ptor2 98
ptor1 126
tor2 126
ellisdivisible 140
t2points 140
ellorder_nf 161
best_in_cycle 175
ellnfis_divisible_by 189
ellnftors 189
smaller_x 196
tpoint 203
ellorder_Q 224
elltors_divpol 231
tors 231
torsbound 231
ellnftorsprimary 259
nfpt 259
nftorsbound 322
elltors 420
ellorder 2681
primedec_deg1 6125

Generated by: LCOV version 1.11