GCC Code Coverage Report


Directory: ./
File: src/sys/classes/bv/interface/bvregis.c
Date: 2025-10-04 04:19:13
Exec Total Coverage
Lines: 10 10 100.0%
Functions: 1 1 100.0%
Branches: 35 58 60.3%

Line Branch Exec Source
1 /*
2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3 SLEPc - Scalable Library for Eigenvalue Problem Computations
4 Copyright (c) 2002-, Universitat Politecnica de Valencia, Spain
5
6 This file is part of SLEPc.
7 SLEPc is distributed under a 2-clause BSD license (see LICENSE).
8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9 */
10
11 #include <slepc/private/bvimpl.h> /*I "slepcbv.h" I*/
12
13 SLEPC_EXTERN PetscErrorCode BVCreate_Vecs(BV);
14 SLEPC_EXTERN PetscErrorCode BVCreate_Contiguous(BV);
15 SLEPC_EXTERN PetscErrorCode BVCreate_Svec(BV);
16 SLEPC_EXTERN PetscErrorCode BVCreate_Mat(BV);
17 SLEPC_EXTERN PetscErrorCode BVCreate_Tensor(BV);
18
19 /*@C
20 BVRegisterAll - Registers all of the storage variants in the BV package.
21
22 Not Collective
23
24 Level: advanced
25
26 .seealso: BVRegister()
27 @*/
28 36025 PetscErrorCode BVRegisterAll(void)
29 {
30
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
36025 PetscFunctionBegin;
31
8/14
✓ Branch 0 taken 10 times.
✓ Branch 1 taken 10 times.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 2 times.
✓ Branch 6 taken 2 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 2 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 2 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✓ Branch 13 taken 2 times.
36025 if (BVRegisterAllCalled) PetscFunctionReturn(PETSC_SUCCESS);
32 14752 BVRegisterAllCalled = PETSC_TRUE;
33
4/6
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 2 times.
14752 PetscCall(BVRegister(BVVECS,BVCreate_Vecs));
34
4/6
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 2 times.
14752 PetscCall(BVRegister(BVCONTIGUOUS,BVCreate_Contiguous));
35
4/6
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 2 times.
14752 PetscCall(BVRegister(BVSVEC,BVCreate_Svec));
36
4/6
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 2 times.
14752 PetscCall(BVRegister(BVMAT,BVCreate_Mat));
37
4/6
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 8 times.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 2 times.
14752 PetscCall(BVRegister(BVTENSOR,BVCreate_Tensor));
38
6/12
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 2 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 2 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 2 times.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
2776 PetscFunctionReturn(PETSC_SUCCESS);
39 }
40