Branch Coverage

Fuzzy.xs
Criterion Covered Total %
branch 61 268 22.7


line true false branch
44 0 43 if (! r) {
51 27 43 for (i = 2; i < items; i++) {
56 0 27 if (i >= items - 1) {
66 27 0 p = (char *) SvPV (x, len);
67 4 23 if (strncmp (p, "max", strlen ("max")) == 0) {
69 4 0 max = SvIV (ST (i + 1));
70 0 4 if (max < 0) {
71 0 0 TEXT_FUZZY (set_max_distance (r, NO_MAX_DISTANCE));
74 0 4 TEXT_FUZZY (set_max_distance (r, max));
77 0 23 else if (strncmp (p, "no_exact", strlen ("no_exact")) == 0) {
78 0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->no_exact = SvTRUE (ST (i + 1)) ? 1 : 0;
80 23 0 else if (strncmp (p, "trans", strlen ("trans")) == 0) {
81 23 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 23 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 23 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 23 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
23 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
23 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 23 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
23 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
0 0 r->transpositions_ok = SvTRUE (ST (i + 1)) ? 1 : 0;
98 0 7 TEXT_FUZZY (get_max_distance (tf, & maximum));
99 3 4 if (maximum >= 0) {
118 2 6 if (SvOK (max_distance)) {
2 0 if (SvOK (max_distance)) {
0 2 if (SvOK (max_distance)) {
119 6 0 maximum = (int) SvIV (max_distance);
120 0 6 if (maximum < 0) {
124 0 8 TEXT_FUZZY (set_max_distance (tf, maximum));
131 6 0 if (SvTRUE (trans)) {
0 6 if (SvTRUE (trans)) {
0 0 if (SvTRUE (trans)) {
0 6 if (SvTRUE (trans)) {
0 0 if (SvTRUE (trans)) {
0 0 if (SvTRUE (trans)) {
0 6 if (SvTRUE (trans)) {
0 0 if (SvTRUE (trans)) {
0 0 if (SvTRUE (trans)) {
0 0 if (SvTRUE (trans)) {
0 0 if (SvTRUE (trans)) {
0 0 if (SvTRUE (trans)) {
6 0 if (SvTRUE (trans)) {
6 0 if (SvTRUE (trans)) {
3 3 if (SvTRUE (trans)) {
0 3 if (SvTRUE (trans)) {
0 0 if (SvTRUE (trans)) {
3 3 if (SvTRUE (trans)) {
0 0 if (SvTRUE (trans)) {
132 0 3 TEXT_FUZZY (set_transpositions (tf, 1));
135 0 3 TEXT_FUZZY (set_transpositions (tf, 0));
142 0 1 TEXT_FUZZY (get_transpositions (tf, & RETVAL));
168 17 0 if (GIMME_V == G_ARRAY) {
5 12 if (GIMME_V == G_ARRAY) {
186 5 12 if (wantarray) {
189 5 0 EXTEND (SP, wasize);
0 5 EXTEND (SP, wasize);
190 10 5 for (i = 0; i < wasize; i++) {
197 8 4 if (n >= 0) {
210 0 4 TEXT_FUZZY (last_distance (tf, & RETVAL));
221 0 2 TEXT_FUZZY (get_unicode_length (tf, & unicode_length));
222 0 2 if (unicode_length == TEXT_FUZZY_INVALID_UNICODE_LENGTH) {
237 0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (no_alphabet (tf, SvTRUE (yes_no)));
244 0 2 TEXT_FUZZY (ualphabet_rejections (tf, & RETVAL));
253 0 2 TEXT_FUZZY (get_length_rejections (tf, & RETVAL));
266 0 0 TEXT_FUZZY (scan_file (tf, file_name, & nearest, & nearest_length));
268 0 0 TEXT_FUZZY (scan_file_free (nearest));
278 0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
0 0 TEXT_FUZZY (set_no_exact (tf, SvTRUE (yes_no)));
284 0 2 TEXT_FUZZY (alphabet_rejections (tf, & RETVAL));