OpenCoverage

builtin.def

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/bash/src/builtins/builtin.def
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11int-
12builtin_builtin (list)-
13 WORD_LIST *list;-
14{-
15 sh_builtin_func_t *function;-
16 register char *command;-
17-
18 if (no_options (list)
no_options (list)Description
TRUEnever evaluated
FALSEevaluated 48 times by 1 test
Evaluated by:
  • Self test
)
0-48
19 return
never executed: return (258);
(258);
never executed: return (258);
0
20 list = loptend;-
21-
22 if (list == 0
list == 0Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 39 times by 1 test
Evaluated by:
  • Self test
)
9-39
23 return
executed 9 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 9 times by 1 test: return (0);
Executed by:
  • Self test
9
24-
25 command = list->word->word;-
26-
27-
28-
29 function = find_shell_builtin (command);-
30-
31-
32 if (function == 0
function == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 38 times by 1 test
Evaluated by:
  • Self test
)
1-38
33 {-
34 sh_notbuiltin (command);-
35 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
36 }-
37 else-
38 {-
39 this_command_name = command;-
40 this_shell_builtin = function;-
41 list = list->next;-
42 return
executed 38 times by 1 test: return ((*function) (list));
Executed by:
  • Self test
((*function) (list));
executed 38 times by 1 test: return ((*function) (list));
Executed by:
  • Self test
38
43 }-
44}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2