GCC Code Coverage Report


Directory: src/
File: src/msg-json-utils.c
Date: 2024-07-13 00:54:47
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 1 1 100.0%
Branches: 2 2 100.0%

Line Branch Exec Source
1 #include "msg-json-utils.h"
2
3 const char *
4 349 msg_json_object_get_string (JsonObject *object,
5 const char *name)
6 {
7
2/2
✓ Branch 1 taken 298 times.
✓ Branch 2 taken 51 times.
349 if (json_object_has_member (object, name))
8 298 return json_object_get_string_member (object, name);
9
10 51 return NULL;
11 }
12