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 - subcyclo.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19611-73a567d) Lines: 524 556 94.2 %
Date: 2016-09-27 05:54:40 Functions: 38 39 97.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Aurifeuille_init 5278
_subcyclo_orbits 27636
bnr_to_znstar 14
factor_Aurifeuille 63
factor_Aurifeuille_aux 5278
factor_Aurifeuille_prime 5215
galoiscyclo 154
galoissubcyclo 196
gscycloconductor 147
lift_check_modulus 91
muliimod_sz 22477
phi 5278
polsubcyclo 3031
polsubcyclo_complex_bound 3059
polsubcyclo_complex_roots 3059
polsubcyclo_cyclic 5880
polsubcyclo_g 3003
polsubcyclo_orbits 238
polsubcyclo_powz 215348
polsubcyclo_roots 3059
polsubcyclo_start 8491
vecmod_to_vecsmall 749
znstar_bits 0
znstar_conductor 147
znstar_coset_bits_inplace 364
znstar_coset_func 728
znstar_cosets 119
znstar_elts 1596
znstar_generate 1778
znstar_hnf 1596
znstar_hnf_elts 1596
znstar_hnf_generators 1659
znstar_order 1834
znstar_partial_bits 2982
znstar_partial_coset_bits 2982
znstar_partial_coset_bits_inplace 3346
znstar_partial_coset_func 4074
znstar_reduce_modulus 35
znstar_small 749

Generated by: LCOV version 1.11