Coverage report for server
src/
File: src/utils/rand.c
Date: 2024-06-25 10:57:05
Lines:
2/2
100.0%
Functions:
1/1
100.0%
Branches:
1/2
50.0%
List of functions
Function (Line)
Call count
Block coverage
rand_p (line 10)
called 7 times, returned 7 times
100.0%
Line
Branch
Exec
Source
1
/*
2
** EPITECH PROJECT, 2024
3
** zappy
4
** File description:
5
** rand.c
6
*/
7
8
#include
"server.h"
9
10
7
int
rand_p
(
int
val
)
11
{
12
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7
return
val
==
0
?
0
:
rand
()
%
val
;
13
}
14