OpenCoverage

gmisc.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/bash/src/lib/glob/gmisc.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12extern char *glob_patscan (char *, char *, int);-
13char *-
14glob_dirscan (pat, dirsep)-
15 char *pat;-
16 int dirsep;-
17{-
18 char *p, *d, *pe, *se;-
19-
20 d = pe = se = 0;-
21 for (p = pat; p
pDescription
TRUEevaluated 30 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& *
*pDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
p
*pDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
; p++)
0-30
22 {-
23 if (extglob_pattern_p (p)
extglob_pattern_p (p)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 26 times by 1 test
Evaluated by:
  • Self test
)
2-26
24 {-
25 if (se == 0
se == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-2
26 se = p + strlen (p) - 1;
executed 2 times by 1 test: se = p + strlen (p) - 1;
Executed by:
  • Self test
2
27 pe = glob_patscan (p + 2, se, 0);-
28 if (pe == 0
pe == 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
)
0-2
29 continue;
never executed: continue;
0
30 else if (*
*pe == 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
pe == 0
*pe == 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
)
0-2
31 break;
never executed: break;
0
32 p = pe - 1;-
33 continue;
executed 2 times by 1 test: continue;
Executed by:
  • Self test
2
34 }-
35 if (*
*p == dirsepDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 20 times by 1 test
Evaluated by:
  • Self test
p == dirsep
*p == dirsepDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 20 times by 1 test
Evaluated by:
  • Self test
)
6-20
36 d = p;
executed 6 times by 1 test: d = p;
Executed by:
  • Self test
6
37 }
executed 26 times by 1 test: end of block
Executed by:
  • Self test
26
38 return
executed 2 times by 1 test: return d;
Executed by:
  • Self test
d;
executed 2 times by 1 test: return d;
Executed by:
  • Self test
2
39}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2