| line |
true |
false |
branch |
|
14
|
0 |
0 |
for (i=0; i
|
|
16
|
0 |
0 |
if (elemr == NULL) |
|
19
|
0 |
0 |
if (!SvROK(conf) || strncmp(sv_reftype(SvRV(conf), 0), "HASH", 5) != 0) { |
|
|
0 |
0 |
if (!SvROK(conf) || strncmp(sv_reftype(SvRV(conf), 0), "HASH", 5) != 0) { |
|
25
|
0 |
0 |
if (topicsv == NULL) { |
|
30
|
0 |
0 |
char* topic = SvPV(*topicsv, len); |
|
32
|
0 |
0 |
if (partitionsv == NULL) { |
|
36
|
0 |
0 |
int32_t partition = SvIV(*partitionsv); |
|
40
|
0 |
0 |
while ((he = hv_iternext(confhv)) != NULL) { |
|
41
|
0 |
0 |
char* key = HePV(he, len); |
|
|
0 |
0 |
char* key = HePV(he, len); |
|
43
|
0 |
0 |
if (strncmp(key, "topic", 6) == 0 || strncmp(key, "partition", 10) == 0) { |
|
|
0 |
0 |
if (strncmp(key, "topic", 6) == 0 || strncmp(key, "partition", 10) == 0) { |
|
46
|
0 |
0 |
} else if (strncmp(key, "offset", 7) == 0) { |
|
47
|
0 |
0 |
tp->offset = SvIV(val); |
|
48
|
0 |
0 |
} else if (strncmp(key, "metadata", 9) == 0) { |
|
49
|
0 |
0 |
tp->metadata = SvPV(val, len); |
|
68
|
0 |
0 |
for (i = 0; i < tpar->cnt; i++) { |
|
74
|
0 |
0 |
if(elem->metadata_size > 0) { |
|
91
|
6 |
2 |
while ((he = hv_iternext(params)) != NULL) { |
|
93
|
0 |
6 |
char* key = HePV(he, len); |
|
|
0 |
0 |
char* key = HePV(he, len); |
|
95
|
3 |
3 |
if (strncmp(key, "default_topic_config", len) == 0) { |
|
96
|
3 |
0 |
if (!SvROK(val) || strncmp(sv_reftype(SvRV(val), 0), "HASH", 5) != 0) { |
|
|
1 |
2 |
if (!SvROK(val) || strncmp(sv_reftype(SvRV(val), 0), "HASH", 5) != 0) { |
|
101
|
1 |
1 |
if (topconf == NULL) goto CROAK; |
|
105
|
1 |
2 |
char *strval = SvPV(val, len); |
|
112
|
1 |
2 |
if (res != RD_KAFKA_CONF_OK) |
|
131
|
2 |
3 |
while ((he = hv_iternext(params)) != NULL) { |
|
133
|
0 |
2 |
char* key = HePV(he, len); |
|
|
0 |
0 |
char* key = HePV(he, len); |
|
135
|
1 |
1 |
char *strval = SvPV(val, len); |
|
142
|
1 |
1 |
if (res != RD_KAFKA_CONF_OK) { |