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 to exceed 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.16.2 lcov report (development 29115-f22e516b23) Lines: 992 1078 92.0 %
Date: 2024-03-28 08:06:56 Functions: 108 115 93.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
cyc_pow_perm 0
groupelts_abelian_group 0
groupelts_exponent 0
vec_is1to1 0
vecperm_extendschreier 0
vecsmall_duplicate_sorted 0
vecvecsmall_max 0
all_cyclic_subg 7
groupelts_cyclic_primepow 7
groupelts_solvablesubgroups 7
groupelts_subgroups_raw 7
groupelts_to_regular 7
subg_to_elts 7
triv_subg 7
vecvecsmall_sort 7
group_export_GAP 14
group_export_MAGMA 14
perm_mul_inplace2 21
perm_to_GAP 21
group_export 28
perm_pow 49
vecvecsmall_sort_inplace 119
subg_extend 182
cyclic_subg 217
groupelts_pow 217
permcycles 259
permsign 273
group_abelianSNF 336
group_subgroup_isnormal 336
group_abelianHNF 385
groupelt_subg_normalize 399
abelian_group 406
set_groupelts 406
perm_order 427
permorder 434
vecvecsmall_indexsort 441
vecvecsmall_sort_uniq 462
subgroups_tableset 497
subg_get_gen 581
groupelts_center 700
dicyclicgroup 1085
quotient_groupelts 1365
perm_to_Z 1680
perm_to_Z_inplace 1701
permtonum 1708
vec_isconst 1841
_domul 2002
tableset_find_index 2002
isperm 2667
groupelts_cyclic_subgroups 3010
groupelts_to_group 3017
galois_elts_sorted 3885
conjclasses_repr 4270
groupelts_conjclasses 4270
group_to_cc 4291
subg_get_set 4333
vecperm_orbits 4746
group_subgroup_is_faithful 4816
group_subgroup_kernel_set 4816
Z_to_perm 5915
numtoperm 5915
cyc_pow 7301
group_isabelian 8932
group_isA4S4 9982
quotient_group 10150
group_quotient 10157
vecsmall_counting_indexsort 10635
vecsmall_is1to1 11207
groupelts_quotient 11522
perm_generate 13048
group_subgroups 13146
perm_cycles 13314
groupelts_subgroup_isnormal 13783
groupelts_conj_set 14448
vecsmall_counting_uniq 16115
vecsmall_uniq 16474
sgcmp 17353
vecsmall_isconst 17424
perm_powu 18585
vecsmall_duplicate 19493
group_domain 26628
cyclicgroup 26670
groupelts_set 28014
quo_get_coset 29708
quotient_perm 29708
vecsmall_uniq_sorted 31368
liftsubgroup 49182
quotient_subgroup_lift 50547
trivialsubgroups 52346
trivialgroup 52367
vecsmall_is1to1spec 54173
liftlistsubgroups 65219
group_set 90671
vec_insert 98084
group_elts 140560
quo_get_gen 140952
group_perm_normalize 179844
group_rightcoset 179844
perm_relorder 220108
group_leftcoset 301623
vecvecsmall_sort_shallow 361046
perm_orderu 433458
perm_commute 572495
group_order 705287
grp_get_gen 936298
perm_sign 968887
vecperm_orbits_i 1420840
grp_get_ord 1585543
vecsmall_counting_sort 1877926
vecsmall_indexsort 2386185
vecsmall_indexsortspec 7912893
vecvecsmall_search 22934359
vecsmall_sort_max 24700345
vecsmall_sort 29039387
vecsmall_sortspec 137349881

Generated by: LCOV version 1.14