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 21352-4be8729) Lines: 522 550 94.9 %
Date: 2017-11-23 06:21:03 Functions: 40 41 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
znstar_bits 0
bnr_to_znstar 14
znstar_reduce_modulus 35
factor_Aurifeuille 63
lift_check_modulus 98
znstar_cosets 126
znstar_conductor 154
gscycloconductor 168
galoiscyclo 189
galoissubcyclo 224
polsubcyclo_orbits 252
znstar_coset_bits_inplace 616
znstar_conductor_bits 658
vecmod_to_vecsmall 938
znstar_small 938
mod_to_small 1204
znstar_coset_func 1232
znstar_elts 2030
znstar_hnf 2030
znstar_hnf_elts 2030
znstar_hnf_generators 2093
znstar_generate 2219
znstar_order 2282
polsubcyclo_g 3290
polsubcyclo 3318
polsubcyclo_complex_bound 3325
polsubcyclo_complex_roots 3325
polsubcyclo_roots 3325
znstar_partial_bits 3675
znstar_partial_coset_bits 3675
znstar_partial_coset_bits_inplace 4291
factor_Aurifeuille_prime 5215
Aurifeuille_init 5278
factor_Aurifeuille_aux 5278
phi 5278
znstar_partial_coset_func 5523
polsubcyclo_cyclic 6398
polsubcyclo_start 8792
muliimod_sz 24311
_subcyclo_orbits 28644
polsubcyclo_powz 227668

Generated by: LCOV version 1.11