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 - perm.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.1 lcov report (development 22726-9e20c6a88) Lines: 653 700 93.3 %
Date: 2018-06-24 05:36:21 Functions: 75 79 94.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Z_to_perm 5915
abelian_group 189
conjclasses_repr 4249
cyc_pow 1891
cyc_pow_perm 0
cyclicgroup 7049
dicyclicgroup 973
galois_elts_sorted 3864
group_abelianHNF 329
group_abelianSNF 280
group_domain 6587
group_elts 70995
group_export 28
group_export_GAP 14
group_export_MAGMA 14
group_isA4S4 4942
group_isabelian 854
group_leftcoset 136451
group_order 318550
group_perm_normalize 60480
group_quotient 5124
group_rightcoset 60480
group_set 58338
group_subgroup_isnormal 56
group_subgroups 6188
group_to_cc 4263
groupelts_abelian_group 0
groupelts_center 693
groupelts_conjclasses 4249
groupelts_exponent 0
groupelts_set 13188
grp_get_gen 432699
grp_get_ord 738551
isperm 1890
liftlistsubgroups 44884
liftsubgroup 29498
numtoperm 5915
perm_commute 536711
perm_cycles 4055
perm_generate 8071
perm_mul_inplace2 7
perm_order 388920
perm_pow 8359
perm_relorder 122906
perm_sign 177375
perm_to_GAP 21
perm_to_Z 1680
perm_to_Z_inplace 1701
permorder 91
permsign 98
permtonum 1708
quo_get_coset 12215
quo_get_gen 76328
quotient_group 5117
quotient_perm 12215
quotient_subgroup_lift 29498
sgcmp 17206
subgroups_tableset 490
tableset_find_index 1981
trivialgroup 30744
trivialsubgroups 30744
vec_insert 97538
vec_is1to1 2731
vec_isconst 5784
vecperm_orbits 826
vecperm_orbits_i 571171
vecsmall_duplicate 14355
vecsmall_duplicate_sorted 0
vecsmall_indexsort 2898666
vecsmall_indexsortspec 21083151
vecsmall_sort 18135931
vecsmall_sortspec 97156752
vecsmall_uniq 1372
vecsmall_uniq_sorted 1449
vecvecsmall_indexsort 21
vecvecsmall_max 133
vecvecsmall_search 19730179
vecvecsmall_sort 121072
vecvecsmall_sort_uniq 392

Generated by: LCOV version 1.13