Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/bash/src/lib/glob/glob_loop.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | static int internal_glob_pattern_p (const unsigned char *); | - | ||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | static int | - | ||||||||||||
6 | internal_glob_pattern_p (pattern) | - | ||||||||||||
7 | const unsigned char *pattern; | - | ||||||||||||
8 | { | - | ||||||||||||
9 | register const unsigned char *p; | - | ||||||||||||
10 | register unsigned char c; | - | ||||||||||||
11 | int bopen; | - | ||||||||||||
12 | - | |||||||||||||
13 | p = pattern; | - | ||||||||||||
14 | bopen = 0; | - | ||||||||||||
15 | - | |||||||||||||
16 | while ((
| 274-2766 | ||||||||||||
17 | switch (c) | - | ||||||||||||
18 | { | - | ||||||||||||
19 | case never executed: '?':case '?': never executed: case '?': | 0 | ||||||||||||
20 | case executed 883 times by 1 test: '*':case '*': Executed by:
executed 883 times by 1 test: case '*': Executed by:
| 883 | ||||||||||||
21 | return executed 883 times by 1 test: 1;return 1; Executed by:
executed 883 times by 1 test: return 1; Executed by:
| 883 | ||||||||||||
22 | - | |||||||||||||
23 | case executed 16 times by 1 test: '[':case '[': Executed by:
executed 16 times by 1 test: case '[': Executed by:
| 16 | ||||||||||||
24 | bopen++; | - | ||||||||||||
25 | continue; executed 16 times by 1 test: continue; Executed by:
| 16 | ||||||||||||
26 | case executed 16 times by 1 test: ']':case ']': Executed by:
executed 16 times by 1 test: case ']': Executed by:
| 16 | ||||||||||||
27 | if (bopen
| 0-16 | ||||||||||||
28 | return executed 16 times by 1 test: 1;return 1; Executed by:
executed 16 times by 1 test: return 1; Executed by:
| 16 | ||||||||||||
29 | continue; never executed: continue; | 0 | ||||||||||||
30 | - | |||||||||||||
31 | case never executed: '+':case '+': never executed: case '+': | 0 | ||||||||||||
32 | case executed 7 times by 1 test: '@':case '@': Executed by:
executed 7 times by 1 test: case '@': Executed by:
| 7 | ||||||||||||
33 | case executed 18 times by 1 test: '!':case '!': Executed by:
executed 18 times by 1 test: case '!': Executed by:
| 18 | ||||||||||||
34 | if (*
| 12-13 | ||||||||||||
35 | return executed 12 times by 1 test: 1;return 1; Executed by:
executed 12 times by 1 test: return 1; Executed by:
| 12 | ||||||||||||
36 | continue; executed 13 times by 1 test: continue; Executed by:
| 13 | ||||||||||||
37 | - | |||||||||||||
38 | case executed 6 times by 1 test: '\\':case '\\': Executed by:
executed 6 times by 1 test: case '\\': Executed by:
| 6 | ||||||||||||
39 | if (*
| 0-6 | ||||||||||||
40 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
41 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||
42 | - | |||||||||||||
43 | return executed 274 times by 1 test: 0;return 0; Executed by:
executed 274 times by 1 test: return 0; Executed by:
| 274 | ||||||||||||
44 | } | - | ||||||||||||
45 | static int internal_glob_wpattern_p (const wchar_t *); | - | ||||||||||||
46 | - | |||||||||||||
47 | - | |||||||||||||
48 | - | |||||||||||||
49 | static int | - | ||||||||||||
50 | internal_glob_wpattern_p (pattern) | - | ||||||||||||
51 | const wchar_t *pattern; | - | ||||||||||||
52 | { | - | ||||||||||||
53 | register const wchar_t *p; | - | ||||||||||||
54 | register wchar_t c; | - | ||||||||||||
55 | int bopen; | - | ||||||||||||
56 | - | |||||||||||||
57 | p = pattern; | - | ||||||||||||
58 | bopen = 0; | - | ||||||||||||
59 | - | |||||||||||||
60 | while ((
| 159-6829 | ||||||||||||
61 | switch (c) | - | ||||||||||||
62 | { | - | ||||||||||||
63 | case executed 14 times by 1 test: L'?':case L'?': Executed by:
executed 14 times by 1 test: case L'?': Executed by:
| 14 | ||||||||||||
64 | case executed 197 times by 1 test: L'*':case L'*': Executed by:
executed 197 times by 1 test: case L'*': Executed by:
| 197 | ||||||||||||
65 | return executed 211 times by 1 test: 1;return 1; Executed by:
executed 211 times by 1 test: return 1; Executed by:
| 211 | ||||||||||||
66 | - | |||||||||||||
67 | case executed 728 times by 1 test: L'[':case L'[': Executed by:
executed 728 times by 1 test: case L'[': Executed by:
| 728 | ||||||||||||
68 | bopen++; | - | ||||||||||||
69 | continue; executed 728 times by 1 test: continue; Executed by:
| 728 | ||||||||||||
70 | case executed 700 times by 1 test: L']':case L']': Executed by:
executed 700 times by 1 test: case L']': Executed by:
| 700 | ||||||||||||
71 | if (bopen
| 0-700 | ||||||||||||
72 | return executed 700 times by 1 test: 1;return 1; Executed by:
executed 700 times by 1 test: return 1; Executed by:
| 700 | ||||||||||||
73 | continue; never executed: continue; | 0 | ||||||||||||
74 | - | |||||||||||||
75 | case executed 11 times by 1 test: L'+':case L'+': Executed by:
executed 11 times by 1 test: case L'+': Executed by:
| 11 | ||||||||||||
76 | case executed 19 times by 1 test: L'@':case L'@': Executed by:
executed 19 times by 1 test: case L'@': Executed by:
| 19 | ||||||||||||
77 | case executed 8 times by 1 test: L'!':case L'!': Executed by:
executed 8 times by 1 test: case L'!': Executed by:
| 8 | ||||||||||||
78 | if (*
| 13-25 | ||||||||||||
79 | return executed 25 times by 1 test: 1;return 1; Executed by:
executed 25 times by 1 test: return 1; Executed by:
| 25 | ||||||||||||
80 | continue; executed 13 times by 1 test: continue; Executed by:
| 13 | ||||||||||||
81 | - | |||||||||||||
82 | case executed 34 times by 1 test: L'\\':case L'\\': Executed by:
executed 34 times by 1 test: case L'\\': Executed by:
| 34 | ||||||||||||
83 | if (*
| 0-34 | ||||||||||||
84 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
85 | } executed 34 times by 1 test: end of block Executed by:
| 34 | ||||||||||||
86 | - | |||||||||||||
87 | return executed 159 times by 1 test: 0;return 0; Executed by:
executed 159 times by 1 test: return 0; Executed by:
| 159 | ||||||||||||
88 | } | - | ||||||||||||
Switch to Source code | Preprocessed file |