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 - crvwtors.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21350-3349c1d) Lines: 318 322 98.8 %
Date: 2017-11-21 06:21:18 Functions: 29 29 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
random_curves_with_11_torsion 113
random_curves_with_7_torsion 197
random_curves_with_9_torsion 324
random_curves_with_10_torsion 417
random_curves_with_5_torsion 628
random_curves_with_elliptic_X1 1412
random_curves_with_6_torsion 3269
t_to_a4a6_and_tors 3420
random_curves_with_3_torsion 3464
random_curves_with_any_torsion 5165
random_curves_with_2_torsion 8843
Fl_div8 35075
qt_to_a4a6_and_tors 35075
random_curves_with_12_torsion 64980
Fl_div4 71489
random_curves_with_4_torsion 89592
a1a3_to_a4a6 104565
random_curves_with_8_torsion 114633
rs_to_a4a6_and_tors 159538
get_X1_info 167412
map_X1_points 167412
random_curves_with_general_X1 167412
tq_to_a4a6_and_tors 286345
random_curves_with_rational_X1 286347
random_curves_with_m_torsion 459037
torsion_compatible_with_characteristic 459037
a2a4_to_a4a6 597635
bc_to_a4a6_and_tors 2580143
bc_to_a4a6 2615218

Generated by: LCOV version 1.11