line |
true |
false |
branch |
48
|
1 |
0 |
data->max_depth = (6 == self->mmdb.metadata.ip_version) ? 128 : 32; |
64
|
0 |
14 |
PUSHMARK(SP); |
65
|
0 |
14 |
EXTEND(SP, 2); |
71
|
14 |
0 |
err_tmp = ERRSV; |
72
|
14 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
14 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
14 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
|
14 |
0 |
if (SvTRUE(err_tmp)) { |
|
14 |
0 |
if (SvTRUE(err_tmp)) { |
|
14 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
14 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
14 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
|
0 |
0 |
if (SvTRUE(err_tmp)) { |
77
|
14 |
0 |
if (1 == count) { |
86
|
14 |
0 |
FREETMPS; |
136
|
144 |
9 |
for (n = 0; n < sizeof(u); ++n) { |
174
|
433 |
101 |
for (list = list->next; size > 0 && NULL != list; size--) { |
|
433 |
0 |
for (list = list->next; size > 0 && NULL != list; size--) { |
175
|
0 |
433 |
if (MMDB_DATA_TYPE_UTF8_STRING != list->entry_data.type) { |
182
|
0 |
433 |
if (NULL == list) { |
188
|
0 |
433 |
if (MMDB_SUCCESS != *mmdb_error) { |
201
|
39 |
19 |
for (list = list->next; size > 0 && NULL != list; size--) { |
|
39 |
0 |
for (list = list->next; size > 0 && NULL != list; size--) { |
204
|
0 |
39 |
if (MMDB_SUCCESS != *mmdb_error) { |
279
|
0 |
832 |
if (!SvOK(data->node_callback)) { |
|
0 |
0 |
if (!SvOK(data->node_callback)) { |
|
0 |
0 |
if (!SvOK(data->node_callback)) { |
290
|
0 |
832 |
PUSHMARK(SP); |
291
|
0 |
832 |
EXTEND(SP, 3); |
298
|
832 |
0 |
FREETMPS; |
309
|
0 |
5 |
if (!SvOK(data->data_callback)) { |
|
0 |
0 |
if (!SvOK(data->data_callback)) { |
|
0 |
0 |
if (!SvOK(data->data_callback)) { |
316
|
5 |
0 |
if (MMDB_SUCCESS == mmdb_error) { |
321
|
0 |
5 |
if (MMDB_SUCCESS != mmdb_error) { |
334
|
0 |
5 |
PUSHMARK(SP); |
335
|
0 |
5 |
EXTEND(SP, 3); |
343
|
5 |
0 |
FREETMPS; |
379
|
0 |
832 |
if (MMDB_SUCCESS != mmdb_error) { |
384
|
0 |
832 |
if (depth > data->max_depth) { |
422
|
0 |
3 |
if ((items - 1) % 2 != 0) { |
426
|
2 |
3 |
for (i = 1; i < items; i += 2) { |
427
|
2 |
0 |
key = SvPV_nolen_const(ST(i)); |
429
|
2 |
0 |
if (strEQ(key, "file")) { |
434
|
1 |
2 |
if (NULL == file) { |
438
|
2 |
0 |
filename = SvPVbyte_nolen(file); |
445
|
1 |
1 |
if (MMDB_SUCCESS != mmdb_error) { |
477
|
6 |
0 |
if (items > 1) { |
478
|
6 |
0 |
ip_address = SvPVbyte_nolen(ST(1)); |
480
|
6 |
0 |
if (NULL == ip_address || '\0' == *ip_address) { |
|
0 |
6 |
if (NULL == ip_address || '\0' == *ip_address) { |
485
|
1 |
5 |
if (0 != gai_error) { |
489
|
0 |
5 |
if (MMDB_SUCCESS != mmdb_error) { |
494
|
4 |
1 |
if (result.found_entry) { |
497
|
4 |
0 |
if (MMDB_SUCCESS == mmdb_error) { |
501
|
0 |
4 |
if (MMDB_SUCCESS != mmdb_error) { |
521
|
1 |
0 |
if (items > 1) { |
523
|
1 |
0 |
if (items > 2) { |
542
|
1 |
0 |
if (MMDB_SUCCESS == mmdb_error) { |
546
|
0 |
1 |
if (MMDB_SUCCESS != mmdb_error) { |