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 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 21348-d75f58f) Lines: 392 403 97.3 %
Date: 2017-11-20 06:21:05 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
ellorder_nf 161
ellnfis_divisible_by 189
ellnftors 189
ellnftorsprimary 259
nfpt 259
ellorder_Q 301
nftorsbound 322
t2points 322
smaller_x 336
best_in_cycle 448
tpoint 448
elltors_divpol 588
tors 588
torsbound 588
elltors 777
ellorder 2765
primedec_deg1 6125

Generated by: LCOV version 1.11