Branch Coverage

amqp_hostcheck.c
Criterion Covered Total %
branch 24 40 60.0


line true false branch
102 19 1 while (*first && *second) {
19 0 while (*first && *second) {
103 1 18 if (amqp_raw_toupper(*first) != amqp_raw_toupper(*second)) {
118 3 0 while (*first && *second && max) {
3 0 while (*first && *second && max) {
1 2 while (*first && *second && max) {
119 1 0 if (amqp_raw_toupper(*first) != amqp_raw_toupper(*second)) {
126 2 1 if (0 == max) {
147 0 1 if (pattern_wildcard == NULL) {
154 1 0 if (pattern_label_end == NULL || strchr(pattern_label_end + 1, '.') == NULL ||
1 0 if (pattern_label_end == NULL || strchr(pattern_label_end + 1, '.') == NULL ||
1 0 if (pattern_label_end == NULL || strchr(pattern_label_end + 1, '.') == NULL ||
155 0 1 pattern_wildcard > pattern_label_end ||
159 0 1 if (!wildcard_enabled) {
172 0 1 if (hostname_label_end - hostname < pattern_label_end - pattern) {
187 1 0 if (!match_pattern || !*match_pattern || !hostname || !*hostname) {
1 0 if (!match_pattern || !*match_pattern || !hostname || !*hostname) {
1 0 if (!match_pattern || !*match_pattern || !hostname || !*hostname) {
0 1 if (!match_pattern || !*match_pattern || !hostname || !*hostname) {
191 0 1 if (amqp_raw_equal(hostname, match_pattern)) {