OpenCoverage

test.def

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/bash/src/builtins/test.def
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12int-
13test_builtin (list)-
14 WORD_LIST *list;-
15{-
16 char **argv;-
17 int argc, result;-
18-
19-
20-
21-
22 if (list == 0
list == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 4357 times by 1 test
Evaluated by:
  • Self test
)
2-4357
23 {-
24 if (this_command_name[0] == '['
this_command_name[0] == '['Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
&& !this_command_name[1]
!this_command_name[1]Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-1
25 {-
26 builtin_error (-
27 dcgettext (((void *)0), -
28 "missing `]'"-
29 , 5)-
30 );-
31 return
executed 1 time by 1 test: return (2);
Executed by:
  • Self test
(2);
executed 1 time by 1 test: return (2);
Executed by:
  • Self test
1
32 }-
33-
34 return
executed 1 time by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 1 time by 1 test: return (1);
Executed by:
  • Self test
1
35 }-
36-
37 argv = make_builtin_argv (list, &argc);-
38 result = test_command (argc, argv);-
39 sh_xfree(((char *)argv), "./test.def", 156);-
40-
41 return
executed 4357 times by 1 test: return (result);
Executed by:
  • Self test
(result);
executed 4357 times by 1 test: return (result);
Executed by:
  • Self test
4357
42}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2