OpenCoverage

setattr.def

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/bash/src/builtins/setattr.def
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11extern sh_builtin_func_t *this_shell_builtin;-
12-
13-
14extern int declare_builtin (WORD_LIST *);-
15-
16-
17-
18-
19-
20-
21int-
22export_builtin (list)-
23 register WORD_LIST *list;-
24{-
25 return
executed 2537 times by 1 test: return (set_or_show_attributes (list, 0x0000001, 0));
Executed by:
  • Self test
(set_or_show_attributes (list, 0x0000001, 0));
executed 2537 times by 1 test: return (set_or_show_attributes (list, 0x0000001, 0));
Executed by:
  • Self test
2537
26}-
27-
28-
29-
30int-
31readonly_builtin (list)-
32 register WORD_LIST *list;-
33{-
34 return
executed 108 times by 1 test: return (set_or_show_attributes (list, 0x0000002, 0));
Executed by:
  • Self test
(set_or_show_attributes (list, 0x0000002, 0));
executed 108 times by 1 test: return (set_or_show_attributes (list, 0x0000002, 0));
Executed by:
  • Self test
108
35}-
36int-
37set_or_show_attributes (list, attribute, nodefs)-
38 register WORD_LIST *list;-
39 int attribute, nodefs;-
40{-
41 register SHELL_VAR *var;-
42 int assign, undo, any_failed, assign_error, opt;-
43 int functions_only, arrays_only, assoc_only;-
44 int aflags;-
45 char *name;-
46-
47 WORD_LIST *nlist, *tlist;-
48 WORD_DESC *w;-
49 char optw[8];-
50 int opti;-
51-
52-
53 functions_only = arrays_only = assoc_only = 0;-
54 undo = any_failed = assign_error = 0;-
55-
56 reset_internal_getopt ();-
57 while ((
(opt = interna...aAfnp")) != -1Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2673 times by 1 test
Evaluated by:
  • Self test
opt = internal_getopt (list, "aAfnp")) != -1
(opt = interna...aAfnp")) != -1Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2673 times by 1 test
Evaluated by:
  • Self test
)
42-2673
58 {-
59 switch (opt)-
60 {-
61 case
executed 5 times by 1 test: case 'n':
Executed by:
  • Self test
'n':
executed 5 times by 1 test: case 'n':
Executed by:
  • Self test
5
62 undo = 1;-
63 break;
executed 5 times by 1 test: break;
Executed by:
  • Self test
5
64 case
executed 24 times by 1 test: case 'f':
Executed by:
  • Self test
'f':
executed 24 times by 1 test: case 'f':
Executed by:
  • Self test
24
65 functions_only = 1;-
66 break;
executed 24 times by 1 test: break;
Executed by:
  • Self test
24
67-
68 case
executed 10 times by 1 test: case 'a':
Executed by:
  • Self test
'a':
executed 10 times by 1 test: case 'a':
Executed by:
  • Self test
10
69 arrays_only = 1;-
70 break;
executed 10 times by 1 test: break;
Executed by:
  • Self test
10
71 case
executed 1 time by 1 test: case 'A':
Executed by:
  • Self test
'A':
executed 1 time by 1 test: case 'A':
Executed by:
  • Self test
1
72 assoc_only = 1;-
73 break;
executed 1 time by 1 test: break;
Executed by:
  • Self test
1
74-
75 case
executed 1 time by 1 test: case 'p':
Executed by:
  • Self test
'p':
executed 1 time by 1 test: case 'p':
Executed by:
  • Self test
1
76 break;
executed 1 time by 1 test: break;
Executed by:
  • Self test
1
77 case
never executed: case -99:
-99:
never executed: case -99:
builtin_help (); return
never executed: return (258);
(258);
never executed: return (258);
0
78 default
executed 1 time by 1 test: default:
Executed by:
  • Self test
:
executed 1 time by 1 test: default:
Executed by:
  • Self test
1
79 builtin_usage ();-
80 return
executed 1 time by 1 test: return (258);
Executed by:
  • Self test
(258);
executed 1 time by 1 test: return (258);
Executed by:
  • Self test
1
81 }-
82 }-
83 list = loptend;-
84-
85 if (list
listDescription
TRUEevaluated 2641 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 32 times by 1 test
Evaluated by:
  • Self test
)
32-2641
86 {-
87 if (attribute & 0x0000001
attribute & 0x0000001Description
TRUEevaluated 2537 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 104 times by 1 test
Evaluated by:
  • Self test
)
104-2537
88 array_needs_making = 1;
executed 2537 times by 1 test: array_needs_making = 1;
Executed by:
  • Self test
2537
89-
90-
91 if (undo
undoDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2636 times by 1 test
Evaluated by:
  • Self test
&& (
(attribute & 0x0000002)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
attribute & 0x0000002)
(attribute & 0x0000002)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-2636
92 attribute &= ~0x0000002;
executed 5 times by 1 test: attribute &= ~0x0000002;
Executed by:
  • Self test
5
93-
94 while (list
listDescription
TRUEevaluated 2646 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2641 times by 1 test
Evaluated by:
  • Self test
)
2641-2646
95 {-
96 name = list->word->word;-
97-
98 if (functions_only
functions_onlyDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2622 times by 1 test
Evaluated by:
  • Self test
)
24-2622
99 {-
100 var = find_function (name);-
101 if (var == 0
var == 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 19 times by 1 test
Evaluated by:
  • Self test
)
5-19
102 {-
103 builtin_error (-
104 dcgettext (((void *)0), -
105 "%s: not a function"-
106 , 5)-
107 , name);-
108 any_failed++;-
109 }
executed 5 times by 1 test: end of block
Executed by:
  • Self test
5
110 else if ((
(attribute & 0x0000001)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
attribute & 0x0000001)
(attribute & 0x0000001)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
&& undo == 0
undo == 0Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& exportable_function_name (name) == 0
exportable_fun...me (name) == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test
)
0-14
111 {-
112 builtin_error (-
113 dcgettext (((void *)0), -
114 "%s: cannot export"-
115 , 5)-
116 , name);-
117 any_failed++;-
118 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test
2
119 else-
120 ((
executed 17 times by 1 test: ((undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute)));
Executed by:
  • Self test
undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute)));
executed 17 times by 1 test: ((undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute)));
Executed by:
  • Self test
17
121-
122 list = list->next;-
123 continue;
executed 24 times by 1 test: continue;
Executed by:
  • Self test
24
124 }-
125-
126-
127 assign = assignment (name, 0);-
128-
129 aflags = 0;-
130 if (assign
assignDescription
TRUEevaluated 208 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2414 times by 1 test
Evaluated by:
  • Self test
)
208-2414
131 {-
132 name[assign] = '\0';-
133 if (name[assign - 1] == '+'
name[assign - 1] == '+'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 206 times by 1 test
Evaluated by:
  • Self test
)
2-206
134 {-
135 aflags |= 0x0001;-
136 name[assign - 1] = '\0';-
137 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test
2
138 }
executed 208 times by 1 test: end of block
Executed by:
  • Self test
208
139-
140 if (legal_identifier (name) == 0
legal_identifier (name) == 0Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2598 times by 1 test
Evaluated by:
  • Self test
)
24-2598
141 {-
142 sh_invalidid (name);-
143 if (assign
assignDescription
TRUEnever evaluated
FALSEevaluated 24 times by 1 test
Evaluated by:
  • Self test
)
0-24
144 assign_error++;
never executed: assign_error++;
0
145 else-
146 any_failed++;
executed 24 times by 1 test: any_failed++;
Executed by:
  • Self test
24
147 list = list->next;-
148 continue;
executed 24 times by 1 test: continue;
Executed by:
  • Self test
24
149 }-
150-
151 if (assign
assignDescription
TRUEevaluated 208 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2390 times by 1 test
Evaluated by:
  • Self test
)
208-2390
152 {-
153 name[assign] = '=';-
154 if (aflags & 0x0001
aflags & 0x0001Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 206 times by 1 test
Evaluated by:
  • Self test
)
2-206
155 name[assign - 1] = '+';
executed 2 times by 1 test: name[assign - 1] = '+';
Executed by:
  • Self test
2
156-
157-
158-
159 if (arrays_only
arrays_onlyDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 204 times by 1 test
Evaluated by:
  • Self test
|| assoc_only
assoc_onlyDescription
TRUEnever evaluated
FALSEevaluated 204 times by 1 test
Evaluated by:
  • Self test
)
0-204
160 {-
161 tlist = list->next;-
162 list->next = (WORD_LIST *)-
163 ((void *)0)-
164 ;-
165-
166-
167 opti = 0;-
168 optw[opti++] = '-';-
169 optw[opti++] = 'g';-
170 if (attribute & 0x0000002
attribute & 0x0000002Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
)
1-3
171 optw[opti++] = 'r';
executed 3 times by 1 test: optw[opti++] = 'r';
Executed by:
  • Self test
3
172 if (attribute & 0x0000001
attribute & 0x0000001Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
)
1-3
173 optw[opti++] = 'x';
executed 1 time by 1 test: optw[opti++] = 'x';
Executed by:
  • Self test
1
174 if (arrays_only
arrays_onlyDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-4
175 optw[opti++] = 'a';
executed 4 times by 1 test: optw[opti++] = 'a';
Executed by:
  • Self test
4
176 else-
177 optw[opti++] = 'A';
never executed: optw[opti++] = 'A';
0
178 optw[opti] = '\0';-
179-
180 w = make_word (optw);-
181 nlist = make_word_list (w, list);-
182-
183 opt = declare_builtin (nlist);-
184 if (opt != 0
opt != 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
)
2
185 assign_error++;
executed 2 times by 1 test: assign_error++;
Executed by:
  • Self test
2
186 list->next = tlist;-
187 dispose_word (w);-
188 sh_xfree((nlist), "./setattr.def", 264);-
189 }
executed 4 times by 1 test: end of block
Executed by:
  • Self test
4
190 else-
191-
192-
193-
194-
195-
196 if (do_assignment_no_expand (name) == 0
do_assignment_...nd (name) == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 200 times by 1 test
Evaluated by:
  • Self test
)
4-200
197 assign_error++;
executed 4 times by 1 test: assign_error++;
Executed by:
  • Self test
4
198 name[assign] = '\0';-
199 if (aflags & 0x0001
aflags & 0x0001Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 206 times by 1 test
Evaluated by:
  • Self test
)
2-206
200 name[assign - 1] = '\0';
executed 2 times by 1 test: name[assign - 1] = '\0';
Executed by:
  • Self test
2
201 }
executed 208 times by 1 test: end of block
Executed by:
  • Self test
208
202-
203 set_var_attribute (name, attribute, undo);-
204 list = list->next;-
205 }
executed 2598 times by 1 test: end of block
Executed by:
  • Self test
2598
206 }
executed 2641 times by 1 test: end of block
Executed by:
  • Self test
2641
207 else-
208 {-
209 SHELL_VAR **variable_list;-
210 register int i;-
211-
212 if ((
(attribute & 0x0000008)Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 17 times by 1 test
Evaluated by:
  • Self test
attribute & 0x0000008)
(attribute & 0x0000008)Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 17 times by 1 test
Evaluated by:
  • Self test
|| functions_only
functions_onlyDescription
TRUEnever evaluated
FALSEevaluated 17 times by 1 test
Evaluated by:
  • Self test
)
0-17
213 {-
214 variable_list = all_shell_functions ();-
215 if (attribute != 0x0000008
attribute != 0x0000008Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
)
2-13
216 attribute &= ~0x0000008;
executed 13 times by 1 test: attribute &= ~0x0000008;
Executed by:
  • Self test
13
217 }
executed 15 times by 1 test: end of block
Executed by:
  • Self test
15
218 else-
219 variable_list = all_shell_variables ();
executed 17 times by 1 test: variable_list = all_shell_variables ();
Executed by:
  • Self test
17
220-
221-
222 if (attribute & 0x0000004
attribute & 0x0000004Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 27 times by 1 test
Evaluated by:
  • Self test
)
5-27
223 {-
224 arrays_only++;-
225 if (attribute != 0x0000004
attribute != 0x0000004Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test
)
1-4
226 attribute &= ~0x0000004;
executed 1 time by 1 test: attribute &= ~0x0000004;
Executed by:
  • Self test
1
227 }
executed 5 times by 1 test: end of block
Executed by:
  • Self test
5
228 else if (attribute & 0x0000040
attribute & 0x0000040Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 20 times by 1 test
Evaluated by:
  • Self test
)
7-20
229 {-
230 assoc_only++;-
231 if (attribute != 0x0000040
attribute != 0x0000040Description
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test
)
0-7
232 attribute &= ~0x0000040;
never executed: attribute &= ~0x0000040;
0
233 }
executed 7 times by 1 test: end of block
Executed by:
  • Self test
7
234-
235-
236 if (variable_list
variable_listDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-32
237 {-
238 for (i = 0; var = variable_list[i]
var = variable_list[i]Description
TRUEevaluated 1188 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 32 times by 1 test
Evaluated by:
  • Self test
; i++)
32-1188
239 {-
240-
241 if (arrays_only
arrays_onlyDescription
TRUEevaluated 482 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 706 times by 1 test
Evaluated by:
  • Self test
&& ((((
((((var)->attr...000004))) == 0Description
TRUEevaluated 390 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 92 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000004))) == 0
((((var)->attr...000004))) == 0Description
TRUEevaluated 390 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 92 times by 1 test
Evaluated by:
  • Self test
)
92-706
242 continue;
executed 390 times by 1 test: continue;
Executed by:
  • Self test
390
243 else if (assoc_only
assoc_onlyDescription
TRUEevaluated 438 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 360 times by 1 test
Evaluated by:
  • Self test
&& ((((
((((var)->attr...000040))) == 0Description
TRUEevaluated 413 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 25 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000040))) == 0
((((var)->attr...000040))) == 0Description
TRUEevaluated 413 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 25 times by 1 test
Evaluated by:
  • Self test
)
25-438
244 continue;
executed 413 times by 1 test: continue;
Executed by:
  • Self test
413
245-
246-
247-
248-
249 if ((
(var->attribut...000|0x0008000)Description
TRUEnever evaluated
FALSEevaluated 385 times by 1 test
Evaluated by:
  • Self test
var->attributes & (0x0001000|0x0008000)) == (0x0001000|0x0008000)
(var->attribut...000|0x0008000)Description
TRUEnever evaluated
FALSEevaluated 385 times by 1 test
Evaluated by:
  • Self test
)
0-385
250 continue;
never executed: continue;
0
251-
252 if ((
(var->attributes & attribute)Description
TRUEevaluated 109 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 276 times by 1 test
Evaluated by:
  • Self test
var->attributes & attribute)
(var->attributes & attribute)Description
TRUEevaluated 109 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 276 times by 1 test
Evaluated by:
  • Self test
)
109-276
253 {-
254 show_var_attributes (var, (this_shell_builtin == readonly_builtin || this_shell_builtin == export_builtin), nodefs);-
255 if (any_failed = sh_chkwrite (any_failed)
any_failed = s...e (any_failed)Description
TRUEnever evaluated
FALSEevaluated 109 times by 1 test
Evaluated by:
  • Self test
)
0-109
256 break;
never executed: break;
0
257 }
executed 109 times by 1 test: end of block
Executed by:
  • Self test
109
258 }
executed 385 times by 1 test: end of block
Executed by:
  • Self test
385
259 sh_xfree((variable_list), "./setattr.def", 335);-
260 }
executed 32 times by 1 test: end of block
Executed by:
  • Self test
32
261 }
executed 32 times by 1 test: end of block
Executed by:
  • Self test
32
262-
263 return
executed 2673 times by 1 test: return (assign_error ? 260 : ((any_failed == 0) ? 0 : 1));
Executed by:
  • Self test
(assign_error ? 260
executed 2673 times by 1 test: return (assign_error ? 260 : ((any_failed == 0) ? 0 : 1));
Executed by:
  • Self test
2673
264 : ((any_failed == 0) ? 0
executed 2673 times by 1 test: return (assign_error ? 260 : ((any_failed == 0) ? 0 : 1));
Executed by:
  • Self test
2673
265 : 1));
executed 2673 times by 1 test: return (assign_error ? 260 : ((any_failed == 0) ? 0 : 1));
Executed by:
  • Self test
2673
266}-
267-
268-
269-
270int-
271show_all_var_attributes (v, nodefs)-
272 int v, nodefs;-
273{-
274 SHELL_VAR **variable_list, *var;-
275 int any_failed;-
276 register int i;-
277-
278 variable_list = v
vDescription
TRUEnever evaluated
FALSEnever evaluated
? all_shell_variables () : all_shell_functions ();
0
279 if (variable_list == 0
variable_list == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
280 return
never executed: return (0);
(0);
never executed: return (0);
0
281-
282 for (i = any_failed = 0; var = variable_list[i]
var = variable_list[i]Description
TRUEnever evaluated
FALSEnever evaluated
; i++)
0
283 {-
284 show_var_attributes (var, (this_shell_builtin == readonly_builtin || this_shell_builtin == export_builtin), nodefs);-
285 if (any_failed = sh_chkwrite (any_failed)
any_failed = s...e (any_failed)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
286 break;
never executed: break;
0
287 }
never executed: end of block
0
288 sh_xfree((variable_list), "./setattr.def", 364);-
289 return
never executed: return (any_failed == 0 ? 0 : 1);
(any_failed == 0 ? 0 : 1);
never executed: return (any_failed == 0 ? 0 : 1);
0
290}-
291-
292int-
293var_attribute_string (var, pattr, flags)-
294 SHELL_VAR *var;-
295 int pattr;-
296 char *flags;-
297{-
298 int i;-
299-
300 i = 0;-
301-
302-
303 if (pattr == 0
pattr == 0Description
TRUEevaluated 578 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test
|| posixly_correct == 0
posixly_correct == 0Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
)
3-578
304 {-
305-
306 if (((((
((((var)->attr... (0x0000004)))Description
TRUEevaluated 240 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 347 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000004)))
((((var)->attr... (0x0000004)))Description
TRUEevaluated 240 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 347 times by 1 test
Evaluated by:
  • Self test
)
240-347
307 flags[i++] = 'a';
executed 240 times by 1 test: flags[i++] = 'a';
Executed by:
  • Self test
240
308-
309 if (((((
((((var)->attr... (0x0000040)))Description
TRUEevaluated 115 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 472 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000040)))
((((var)->attr... (0x0000040)))Description
TRUEevaluated 115 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 472 times by 1 test
Evaluated by:
  • Self test
)
115-472
310 flags[i++] = 'A';
executed 115 times by 1 test: flags[i++] = 'A';
Executed by:
  • Self test
115
311-
312-
313 if (((((
((((var)->attr... (0x0000008)))Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 570 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000008)))
((((var)->attr... (0x0000008)))Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 570 times by 1 test
Evaluated by:
  • Self test
)
17-570
314 flags[i++] = 'f';
executed 17 times by 1 test: flags[i++] = 'f';
Executed by:
  • Self test
17
315-
316 if (((((
((((var)->attr... (0x0000010)))Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 570 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000010)))
((((var)->attr... (0x0000010)))Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 570 times by 1 test
Evaluated by:
  • Self test
)
17-570
317 flags[i++] = 'i';
executed 17 times by 1 test: flags[i++] = 'i';
Executed by:
  • Self test
17
318-
319 if (((((
((((var)->attr... (0x0000800)))Description
TRUEevaluated 95 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 492 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000800)))
((((var)->attr... (0x0000800)))Description
TRUEevaluated 95 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 492 times by 1 test
Evaluated by:
  • Self test
)
95-492
320 flags[i++] = 'n';
executed 95 times by 1 test: flags[i++] = 'n';
Executed by:
  • Self test
95
321-
322 if (((((
((((var)->attr... (0x0000002)))Description
TRUEevaluated 115 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 472 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000002)))
((((var)->attr... (0x0000002)))Description
TRUEevaluated 115 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 472 times by 1 test
Evaluated by:
  • Self test
)
115-472
323 flags[i++] = 'r';
executed 115 times by 1 test: flags[i++] = 'r';
Executed by:
  • Self test
115
324-
325 if (((((
((((var)->attr... (0x0000080)))Description
TRUEnever evaluated
FALSEevaluated 587 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000080)))
((((var)->attr... (0x0000080)))Description
TRUEnever evaluated
FALSEevaluated 587 times by 1 test
Evaluated by:
  • Self test
)
0-587
326 flags[i++] = 't';
never executed: flags[i++] = 't';
0
327-
328 if (((((
((((var)->attr... (0x0000001)))Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 551 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000001)))
((((var)->attr... (0x0000001)))Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 551 times by 1 test
Evaluated by:
  • Self test
)
36-551
329 flags[i++] = 'x';
executed 36 times by 1 test: flags[i++] = 'x';
Executed by:
  • Self test
36
330-
331 if (((((
((((var)->attr... (0x0000400)))Description
TRUEnever evaluated
FALSEevaluated 587 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000400)))
((((var)->attr... (0x0000400)))Description
TRUEnever evaluated
FALSEevaluated 587 times by 1 test
Evaluated by:
  • Self test
)
0-587
332 flags[i++] = 'c';
never executed: flags[i++] = 'c';
0
333-
334 if (((((
((((var)->attr... (0x0000200)))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 581 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000200)))
((((var)->attr... (0x0000200)))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 581 times by 1 test
Evaluated by:
  • Self test
)
6-581
335 flags[i++] = 'l';
executed 6 times by 1 test: flags[i++] = 'l';
Executed by:
  • Self test
6
336-
337 if (((((
((((var)->attr... (0x0000100)))Description
TRUEnever evaluated
FALSEevaluated 587 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000100)))
((((var)->attr... (0x0000100)))Description
TRUEnever evaluated
FALSEevaluated 587 times by 1 test
Evaluated by:
  • Self test
)
0-587
338 flags[i++] = 'u';
never executed: flags[i++] = 'u';
0
339 }
executed 587 times by 1 test: end of block
Executed by:
  • Self test
587
340 else-
341 {-
342-
343 if (((((
((((var)->attr... (0x0000004)))Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
var)->attributes) & (0x0000004)))
((((var)->attr... (0x0000004)))Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-3
344 flags[i++] = 'a';
executed 3 times by 1 test: flags[i++] = 'a';
Executed by:
  • Self test
3
345-
346 if (((((
((((var)->attr... (0x0000040)))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000040)))
((((var)->attr... (0x0000040)))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
)
0-3
347 flags[i++] = 'A';
never executed: flags[i++] = 'A';
0
348-
349-
350 if (((((
((((var)->attr... (0x0000008)))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000008)))
((((var)->attr... (0x0000008)))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
)
0-3
351 flags[i++] = 'f';
never executed: flags[i++] = 'f';
0
352 }
executed 3 times by 1 test: end of block
Executed by:
  • Self test
3
353-
354 flags[i] = '\0';-
355 return
executed 590 times by 1 test: return i;
Executed by:
  • Self test
i;
executed 590 times by 1 test: return i;
Executed by:
  • Self test
590
356}-
357-
358-
359-
360-
361-
362-
363-
364int-
365show_var_attributes (var, pattr, nodefs)-
366 SHELL_VAR *var;-
367 int pattr, nodefs;-
368{-
369 char flags[16], *x;-
370 int i;-
371-
372 i = var_attribute_string (var, pattr, flags);-
373-
374-
375-
376-
377 if (((((
((((var)->attr... (0x0000008)))Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 559 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000008)))
((((var)->attr... (0x0000008)))Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 559 times by 1 test
Evaluated by:
  • Self test
&& nodefs == 0
nodefs == 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
&& (pattr == 0
pattr == 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
|| posixly_correct == 0
posixly_correct == 0Description
TRUEnever evaluated
FALSEnever evaluated
))
0-559
378 {-
379 printf ("%s\n", named_function_string (var->name, (COMMAND *)((var)->value), 0x01|0x02));-
380 nodefs++;-
381 if (pattr == 0
pattr == 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& i == 1
i == 1Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& flags[0] == 'f'
flags[0] == 'f'Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-12
382 return
executed 12 times by 1 test: return 0;
Executed by:
  • Self test
0;
executed 12 times by 1 test: return 0;
Executed by:
  • Self test
12
383 }
never executed: end of block
0
384-
385 if (pattr == 0
pattr == 0Description
TRUEevaluated 552 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test
|| posixly_correct == 0
posixly_correct == 0Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
)
3-552
386 printf ("declare -%s ", i ? flags : "-");
executed 561 times by 1 test: printf ("declare -%s ", i ? flags : "-");
Executed by:
  • Self test
561
387 else if (i
iDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-3
388 printf ("%s -%s ", this_command_name, flags);
executed 3 times by 1 test: printf ("%s -%s ", this_command_name, flags);
Executed by:
  • Self test
3
389 else-
390 printf ("%s ", this_command_name);
never executed: printf ("%s ", this_command_name);
0
391-
392-
393 if (((((
((((var)->attr... (0x0001000)))Description
TRUEevaluated 46 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 518 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0001000)))
((((var)->attr... (0x0001000)))Description
TRUEevaluated 46 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 518 times by 1 test
Evaluated by:
  • Self test
&& (((((
((((var)->attr... (0x0000004)))Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 30 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000004)))
((((var)->attr... (0x0000004)))Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 30 times by 1 test
Evaluated by:
  • Self test
|| ((((
((((var)->attr... (0x0000040)))Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 23 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000040)))
((((var)->attr... (0x0000040)))Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 23 times by 1 test
Evaluated by:
  • Self test
))
7-518
394 printf ("%s\n", var->name);
executed 23 times by 1 test: printf ("%s\n", var->name);
Executed by:
  • Self test
23
395 else if (((((
((((var)->attr... (0x0000004)))Description
TRUEevaluated 222 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 319 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000004)))
((((var)->attr... (0x0000004)))Description
TRUEevaluated 222 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 319 times by 1 test
Evaluated by:
  • Self test
)
222-319
396 print_array_assignment (var, 0);
executed 222 times by 1 test: print_array_assignment (var, 0);
Executed by:
  • Self test
222
397 else if (((((
((((var)->attr... (0x0000040)))Description
TRUEevaluated 105 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 214 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000040)))
((((var)->attr... (0x0000040)))Description
TRUEevaluated 105 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 214 times by 1 test
Evaluated by:
  • Self test
)
105-214
398 print_assoc_assignment (var, 0);
executed 105 times by 1 test: print_assoc_assignment (var, 0);
Executed by:
  • Self test
105
399 else-
400-
401-
402-
403 if (nodefs
nodefsDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 209 times by 1 test
Evaluated by:
  • Self test
|| (((((
((((var)->attr... (0x0000008)))Description
TRUEnever evaluated
FALSEevaluated 209 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000008)))
((((var)->attr... (0x0000008)))Description
TRUEnever evaluated
FALSEevaluated 209 times by 1 test
Evaluated by:
  • Self test
&& pattr != 0
pattr != 0Description
TRUEnever evaluated
FALSEnever evaluated
&& posixly_correct
posixly_correctDescription
TRUEnever evaluated
FALSEnever evaluated
))
0-209
404 printf ("%s\n", var->name);
executed 5 times by 1 test: printf ("%s\n", var->name);
Executed by:
  • Self test
5
405 else if (((((
((((var)->attr... (0x0000008)))Description
TRUEnever evaluated
FALSEevaluated 209 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000008)))
((((var)->attr... (0x0000008)))Description
TRUEnever evaluated
FALSEevaluated 209 times by 1 test
Evaluated by:
  • Self test
)
0-209
406 printf ("%s\n", named_function_string (var->name, (COMMAND *)((var)->value), 0x01|0x02));
never executed: printf ("%s\n", named_function_string (var->name, (COMMAND *)((var)->value), 0x01|0x02));
0
407 else if (((((
((((var)->attr... (0x0001000)))Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 186 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0001000)))
((((var)->attr... (0x0001000)))Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 186 times by 1 test
Evaluated by:
  • Self test
|| ((
((var)->value != 0) == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 185 times by 1 test
Evaluated by:
  • Self test
var)->value != 0) == 0
((var)->value != 0) == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 185 times by 1 test
Evaluated by:
  • Self test
)
1-186
408 printf ("%s\n", var->name);
executed 24 times by 1 test: printf ("%s\n", var->name);
Executed by:
  • Self test
24
409 else-
410 {-
411 x = sh_double_quote (((var)->value));-
412 printf ("%s=%s\n", var->name, x);-
413 sh_xfree((x), "./setattr.def", 489);-
414 }
executed 185 times by 1 test: end of block
Executed by:
  • Self test
185
415 return
executed 564 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 564 times by 1 test: return (0);
Executed by:
  • Self test
564
416}-
417-
418int-
419show_name_attributes (name, nodefs)-
420 char *name;-
421 int nodefs;-
422{-
423 SHELL_VAR *var;-
424-
425-
426-
427-
428 var = find_variable_noref (name);-
429-
430-
431 if (var
varDescription
TRUEevaluated 461 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 51 times by 1 test
Evaluated by:
  • Self test
)
51-461
432 {-
433 show_var_attributes (var, (this_shell_builtin == readonly_builtin || this_shell_builtin == export_builtin), nodefs);-
434 return
executed 461 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 461 times by 1 test: return (0);
Executed by:
  • Self test
461
435 }-
436 else-
437 return
executed 51 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 51 times by 1 test: return (1);
Executed by:
  • Self test
51
438}-
439-
440int-
441show_func_attributes (name, nodefs)-
442 char *name;-
443 int nodefs;-
444{-
445 SHELL_VAR *var;-
446-
447 var = find_function (name);-
448-
449 if (var
varDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
)
2-6
450 {-
451 show_var_attributes (var, (this_shell_builtin == readonly_builtin || this_shell_builtin == export_builtin), nodefs);-
452 return
executed 6 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 6 times by 1 test: return (0);
Executed by:
  • Self test
6
453 }-
454 else-
455 return
executed 2 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 2 times by 1 test: return (1);
Executed by:
  • Self test
2
456}-
457-
458void-
459set_var_attribute (name, attribute, undo)-
460 char *name;-
461 int attribute, undo;-
462{-
463 SHELL_VAR *var, *tv, *v, *refvar;-
464 char *tvalue;-
465-
466 if (undo
undoDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2593 times by 1 test
Evaluated by:
  • Self test
)
5-2593
467 var = find_variable (name);
executed 5 times by 1 test: var = find_variable (name);
Executed by:
  • Self test
5
468 else-
469 {-
470 tv = find_tempenv_variable (name);-
471-
472-
473-
474 if (tv
tvDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2586 times by 1 test
Evaluated by:
  • Self test
&& ((((
((((tv)->attri... (0x0100000)))Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
tv)->attributes) & (0x0100000)))
((((tv)->attri... (0x0100000)))Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-2586
475 {-
476 tvalue = ((
((tv)->value != 0)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
tv)->value != 0)
((tv)->value != 0)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
? (char *)strcpy (sh_xmalloc((1 + strlen (((tv)->value))), "./setattr.def", 552), (((tv)->value))) : (char *)strcpy (sh_xmalloc((1 + strlen ("")), "./setattr.def", 552), (""));
0-7
477-
478 var = bind_variable (tv->name, tvalue, 0);-
479 if (var == 0
var == 0Description
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test
)
0-7
480 {-
481 sh_xfree((tvalue), "./setattr.def", 557);-
482 return;
never executed: return;
0
483 }-
484 var->attributes |= tv->attributes & ~0x0100000;-
485-
486-
487 if (var->context == 0
var->context == 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& (
(attribute & 0x0000002)Description
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test
attribute & 0x0000002)
(attribute & 0x0000002)Description
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test
)
0-7
488 {-
489-
490-
491 v = find_global_variable (tv->name);-
492 if (v != var
v != varDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
493 ((
never executed: ((tv)->attributes |= (0x0200000));
tv)->attributes |= (0x0200000));
never executed: ((tv)->attributes |= (0x0200000));
0
494 }
never executed: end of block
0
495 else-
496 ((
executed 7 times by 1 test: ((tv)->attributes |= (0x0200000));
Executed by:
  • Self test
tv)->attributes |= (0x0200000));
executed 7 times by 1 test: ((tv)->attributes |= (0x0200000));
Executed by:
  • Self test
7
497 if (var->context != 0
var->context != 0Description
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test
)
0-7
498 ((
never executed: ((var)->attributes |= (0x0200000));
var)->attributes |= (0x0200000));
never executed: ((var)->attributes |= (0x0200000));
0
499 ((undo == 0) ? ((tv)->attributes |= (attribute)) : ((tv)->attributes &= ~(attribute)));-
500-
501 stupidly_hack_special_variables (tv->name);-
502-
503 sh_xfree((tvalue), "./setattr.def", 579);-
504 }
executed 7 times by 1 test: end of block
Executed by:
  • Self test
7
505 else-
506 {-
507 var = find_variable_notempenv (name);-
508 if (var == 0
var == 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2580 times by 1 test
Evaluated by:
  • Self test
)
6-2580
509 {-
510-
511-
512-
513 refvar = find_variable_nameref_for_create (name, 0);-
514 if (refvar == (void *)&nameref_invalid_value
refvar == (voi..._invalid_valueDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
)
1-5
515 return;
executed 1 time by 1 test: return;
Executed by:
  • Self test
1
516-
517-
518-
519 }
executed 5 times by 1 test: end of block
Executed by:
  • Self test
5
520 if (var == 0
var == 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2580 times by 1 test
Evaluated by:
  • Self test
)
5-2580
521 {-
522 var = bind_variable (name, (char *)-
523 ((void *)0)-
524 , 0);-
525 if (var
varDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& no_invisible_vars == 0
no_invisible_vars == 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-5
526 ((
executed 5 times by 1 test: ((var)->attributes |= (0x0001000));
Executed by:
  • Self test
var)->attributes |= (0x0001000));
executed 5 times by 1 test: ((var)->attributes |= (0x0001000));
Executed by:
  • Self test
5
527 }
executed 5 times by 1 test: end of block
Executed by:
  • Self test
5
528 else if (var->context != 0
var->context != 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2572 times by 1 test
Evaluated by:
  • Self test
)
8-2572
529 ((
executed 8 times by 1 test: ((var)->attributes |= (0x0200000));
Executed by:
  • Self test
var)->attributes |= (0x0200000));
executed 8 times by 1 test: ((var)->attributes |= (0x0200000));
Executed by:
  • Self test
8
530 }
executed 2585 times by 1 test: end of block
Executed by:
  • Self test
2585
531 }-
532-
533 if (var
varDescription
TRUEevaluated 2597 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-2597
534 ((
executed 2597 times by 1 test: ((undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute)));
Executed by:
  • Self test
undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute)));
executed 2597 times by 1 test: ((undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute)));
Executed by:
  • Self test
2597
535-
536 if (var
varDescription
TRUEevaluated 2597 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& (((((
((((var)->attr... (0x0000001)))Description
TRUEevaluated 2519 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 78 times by 1 test
Evaluated by:
  • Self test
var)->attributes) & (0x0000001)))
((((var)->attr... (0x0000001)))Description
TRUEevaluated 2519 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 78 times by 1 test
Evaluated by:
  • Self test
|| (
(attribute & 0x0000001)Description
TRUEnever evaluated
FALSEevaluated 78 times by 1 test
Evaluated by:
  • Self test
attribute & 0x0000001)
(attribute & 0x0000001)Description
TRUEnever evaluated
FALSEevaluated 78 times by 1 test
Evaluated by:
  • Self test
))
0-2597
537 array_needs_making++;
executed 2519 times by 1 test: array_needs_making++;
Executed by:
  • Self test
2519
538}
executed 2597 times by 1 test: end of block
Executed by:
  • Self test
2597
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2