GCC Code Coverage Report


Directory: ./
File: src/sys/tests/test2.c
Date: 2025-10-04 04:19:13
Exec Total Coverage
Lines: 8 8 100.0%
Functions: 1 1 100.0%
Branches: 12 26 46.2%

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 static char help[] = "Tests functions intended to be used from a debugger.\n\n";
12
13 #include <slepcsys.h>
14
15 2 int main(int argc,char **argv)
16 {
17 #if defined(PETSC_USE_DEBUG)
18 #if defined(PETSC_USE_COMPLEX)
19 1 PetscScalar Xr[]={1.0,-0.5,0.625,1.25,-0.125,-5.5};
20 #else
21 1 PetscScalar Xr[]={1.0,-0.5,0.625,1.25,-0.125,-5.5},Xi[]={0.0,0.0,0.0,0.0,0.0,0.0};
22 #endif
23 #endif
24
25
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 PetscFunctionBeginUser;
26
3/6
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 2 times.
2 PetscCall(SlepcInitialize(&argc,&argv,NULL,help));
27
28 #if defined(PETSC_USE_DEBUG)
29 #if defined(PETSC_USE_COMPLEX)
30
3/6
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 1 times.
1 PetscCall(SlepcDebugViewMatrix(2,3,Xr,NULL,2,"M",NULL));
31 #else
32
3/6
✓ Branch 0 taken 1 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 1 times.
1 PetscCall(SlepcDebugViewMatrix(2,3,Xr,Xi,2,"M",NULL));
33 #endif
34 #endif
35
36
2/6
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
2 PetscCall(SlepcFinalize());
37 return 0;
38 }
39
40 /*TEST
41
42 build:
43 requires: debug
44
45 test:
46 args: -help
47 filter: sed -e "s/\(Development Git.*\)/version/" | sed -e "s/\(Release Version.*\)/version/" | sed -e "s/\(linked from.*\)/linked from PATH/"
48
49 TEST*/
50