github
273 of 700 branches covered (39.0%)
Branch coverage included in aggregate %.
110 of 110 new or added lines in 5 files covered. (100.0%)
757 of 1360 relevant lines covered (55.66%)
1320.21 hits per line
1 |
#include <minishell.h> |
|
2 |
|
|
3 |
int32_t is_tokenchar(const char *str) |
251✔ |
4 |
{ |
|
5 |
char c;
|
|
6 |
|
|
|
c = *str; |
251✔ |
|
if (is_pipe(c))
|
|
9 |
return (1); |
× |
|
else if (c == '<' || c == '>') |
|
11 |
{ |
|
12 |
if (!ft_strncmp(str, "<<", 2) || !ft_strncmp(str, ">>", 2)) |
|
13 |
return (2); |
8✔ |
14 |
return (1); |
8✔ |
15 |
} |
|
16 |
return (0); |
235✔ |
17 |
} |