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.1 lcov report (development 28676-df828f1c94) Lines: 992 1078 92.0 %
Date: 2023-08-26 07:54:43 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
set_groupelts 406
perm_order 427
permorder 434
vecvecsmall_indexsort 441
vecvecsmall_sort_uniq 462
abelian_group 469
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 7390
group_isabelian 9240
group_isA4S4 9982
quotient_group 10150
group_quotient 10157
vecsmall_counting_indexsort 10627
vecsmall_is1to1 11278
groupelts_quotient 11522
perm_generate 13048
group_subgroups 13146
perm_cycles 13488
groupelts_subgroup_isnormal 13783
groupelts_conj_set 14448
vecsmall_counting_uniq 16115
vecsmall_uniq 16446
sgcmp 17353
vecsmall_isconst 17784
perm_powu 18583
vecsmall_duplicate 19019
group_domain 26628
cyclicgroup 26656
groupelts_set 28014
quo_get_coset 29708
quotient_perm 29708
vecsmall_uniq_sorted 31340
liftsubgroup 49182
quotient_subgroup_lift 50547
trivialsubgroups 52346
trivialgroup 52367
vecsmall_is1to1spec 54380
liftlistsubgroups 65219
group_set 90671
vec_insert 98084
group_elts 140861
quo_get_gen 140952
vecsmall_counting_sort 144875
group_perm_normalize 179452
group_rightcoset 179452
perm_relorder 220115
group_leftcoset 301231
vecvecsmall_sort_shallow 360262
perm_orderu 433244
perm_commute 572495
group_order 704810
perm_sign 707814
grp_get_gen 936124
vecperm_orbits_i 1159706
grp_get_ord 1584585
vecsmall_indexsort 2381800
vecsmall_indexsortspec 7910426
vecvecsmall_search 22934359
vecsmall_sort_max 32210410
vecsmall_sort 37144523
vecsmall_sortspec 182661912

Generated by: LCOV version 1.14