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 - basemath - subcyclo.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16962-5a32637) Lines: 527 563 93.6 %
Date: 2014-10-29 Functions: 38 39 97.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 276 348 79.3 %

Function Name Sort by function name Hit count Sort by hit count
Aurifeuille_init 5250
_subcyclo_orbits 27104
bnr_to_znstar 14
factor_Aurifeuille 63
factor_Aurifeuille_aux 5250
factor_Aurifeuille_prime 5187
galoiscyclo 42
galoissubcyclo 112
gscycloconductor 70
lift_check_modulus 14
muliimod_sz 20748
phi 5250
polsubcyclo 2730
polsubcyclo_complex_bound 2702
polsubcyclo_complex_roots 2702
polsubcyclo_cyclic 5278
polsubcyclo_g 2702
polsubcyclo_orbits 126
polsubcyclo_powz 203700
polsubcyclo_roots 2702
polsubcyclo_start 7994
vecmod_to_vecsmall 679
znstar_bits 0
znstar_conductor 70
znstar_coset_bits_inplace 224
znstar_coset_func 448
znstar_cosets 63
znstar_elts 1456
znstar_generate 1561
znstar_hnf 1456
znstar_hnf_elts 1456
znstar_hnf_generators 1519
znstar_order 1582
znstar_partial_bits 2667
znstar_partial_coset_bits 2667
znstar_partial_coset_bits_inplace 2891
znstar_partial_coset_func 3339
znstar_reduce_modulus 35
znstar_small 679

Generated by: LCOV version 1.9