Branch Coverage

amqp_hostcheck.c
Criterion Covered Total %
branch 24 40 60.0


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