GCC Code Coverage Report


Directory: ./
File: lib/my/my_show_param_array.c
Date: 2024-06-05 00:36:48
Exec Total Coverage
Lines: 10 10 100.0%
Functions: 1 1 100.0%
Branches: 2 2 100.0%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2023
3 ** my_show_param_array
4 ** File description:
5 ** Prints the name, the length and word array of
6 ** each element of an array (par) of the info_param struct
7 */
8 /**
9 * @file my_show_param_array.c
10 * @brief The file containing the my_show_param_array function
11 * @author Nicolas TORO
12 */
13
14 #include "my.h"
15
16 1 void my_show_param_array(struct info_param const *par)
17 {
18 1 int i = 0;
19
20
2/2
✓ Branch 0 taken 1 times.
✓ Branch 1 taken 1 times.
2 while (par[i].length != 0) {
21 1 my_putstr(par[i].str);
22 1 my_putchar('\n');
23 1 my_putnbr(par[i].length);
24 1 my_putchar('\n');
25 1 my_show_word_array(par[i].word_array);
26 1 i++;
27 }
28 1 }
29