OpenCoverage

strmatch.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/bash/src/lib/glob/strmatch.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3extern int xstrmatch (char *, char *, int);-
4-
5extern int internal_wstrmatch (wchar_t *, wchar_t *, int);-
6-
7-
8int-
9strmatch (pattern, string, flags)-
10 char *pattern;-
11 char *string;-
12 int flags;-
13{-
14 if (string == 0
string == 0Description
TRUEnever evaluated
FALSEevaluated 48823648 times by 1 test
Evaluated by:
  • Self test
|| pattern == 0
pattern == 0Description
TRUEnever evaluated
FALSEevaluated 48823648 times by 1 test
Evaluated by:
  • Self test
)
0-48823648
15 return
never executed: return 1;
1;
never executed: return 1;
0
16-
17 return
executed 48823648 times by 1 test: return (xstrmatch (pattern, string, flags));
Executed by:
  • Self test
(xstrmatch (pattern, string, flags));
executed 48823648 times by 1 test: return (xstrmatch (pattern, string, flags));
Executed by:
  • Self test
48823648
18}-
19-
20-
21int-
22wcsmatch (wpattern, wstring, flags)-
23 wchar_t *wpattern;-
24 wchar_t *wstring;-
25 int flags;-
26{-
27 if (wstring == 0
wstring == 0Description
TRUEnever evaluated
FALSEevaluated 9622991 times by 1 test
Evaluated by:
  • Self test
|| wpattern == 0
wpattern == 0Description
TRUEnever evaluated
FALSEevaluated 9622991 times by 1 test
Evaluated by:
  • Self test
)
0-9622991
28 return
never executed: return (1);
(1);
never executed: return (1);
0
29-
30 return
executed 9622991 times by 1 test: return (internal_wstrmatch (wpattern, wstring, flags));
Executed by:
  • Self test
(internal_wstrmatch (wpattern, wstring, flags));
executed 9622991 times by 1 test: return (internal_wstrmatch (wpattern, wstring, flags));
Executed by:
  • Self test
9622991
31}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2