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.10.0 lcov report (development 20459-9710128) Lines: 528 556 95.0 %
Date: 2017-04-27 05:33:52 Functions: 38 39 97.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Aurifeuille_init 4524
_subcyclo_orbits 24552
bnr_to_znstar 12
factor_Aurifeuille 54
factor_Aurifeuille_aux 4524
factor_Aurifeuille_prime 4470
galoiscyclo 144
galoissubcyclo 192
gscycloconductor 144
lift_check_modulus 84
muliimod_sz 19782
phi 4524
polsubcyclo 2652
polsubcyclo_complex_bound 2682
polsubcyclo_complex_roots 2682
polsubcyclo_cyclic 5148
polsubcyclo_g 2628
polsubcyclo_orbits 216
polsubcyclo_powz 188232
polsubcyclo_roots 2682
polsubcyclo_start 7350
vecmod_to_vecsmall 750
znstar_bits 0
znstar_conductor 132
znstar_coset_bits_inplace 528
znstar_coset_func 1056
znstar_cosets 108
znstar_elts 1632
znstar_generate 1794
znstar_hnf 1632
znstar_hnf_elts 1632
znstar_hnf_generators 1686
znstar_order 1848
znstar_partial_bits 2988
znstar_partial_coset_bits 2988
znstar_partial_coset_bits_inplace 3516
znstar_partial_coset_func 4572
znstar_reduce_modulus 30
znstar_small 750

Generated by: LCOV version 1.11