GCC Code Coverage Report


Directory: ./
File: lib/my/my_char_is_alpha.c
Date: 2024-05-07 14:54:03
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 1 1 100.0%
Branches: 8 8 100.0%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2023
3 ** my_char_is_alpha
4 ** File description:
5 ** Returns 1 if the characters (c) is alphabetical or 0 if not
6 */
7 /**
8 * @file my_char_is_alpha.c
9 * @brief The file containing the my_char_is_alpha function
10 * @author Nicolas TORO
11 */
12
13 #include "my.h"
14
15 504 int my_char_is_alpha(char c)
16 {
17
8/8
✓ Branch 0 taken 388 times.
✓ Branch 1 taken 116 times.
✓ Branch 2 taken 163 times.
✓ Branch 3 taken 225 times.
✓ Branch 4 taken 163 times.
✓ Branch 5 taken 116 times.
✓ Branch 6 taken 152 times.
✓ Branch 7 taken 11 times.
504 if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'))
18 377 return 1;
19 127 return 0;
20 }
21