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 19828-fe528f7) Lines: 524 554 94.6 %
Date: 2016-12-07 05:49:12 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 28644
bnr_to_znstar 14
factor_Aurifeuille 63
factor_Aurifeuille_aux 5278
factor_Aurifeuille_prime 5215
galoiscyclo 154
galoissubcyclo 203
gscycloconductor 154
lift_check_modulus 98
muliimod_sz 22736
phi 5278
polsubcyclo 3045
polsubcyclo_complex_bound 3080
polsubcyclo_complex_roots 3080
polsubcyclo_cyclic 5908
polsubcyclo_g 3017
polsubcyclo_orbits 252
polsubcyclo_powz 217224
polsubcyclo_roots 3080
polsubcyclo_start 8512
vecmod_to_vecsmall 756
znstar_bits 0
znstar_conductor 154
znstar_coset_bits_inplace 616
znstar_coset_func 1232
znstar_cosets 126
znstar_elts 1610
znstar_generate 1799
znstar_hnf 1610
znstar_hnf_elts 1610
znstar_hnf_generators 1673
znstar_order 1862
znstar_partial_bits 3017
znstar_partial_coset_bits 3017
znstar_partial_coset_bits_inplace 3633
znstar_partial_coset_func 4865
znstar_reduce_modulus 35
znstar_small 756

Generated by: LCOV version 1.11