Branch Coverage

lib/Convert/Wiki/Txt.pm
Criterion Covered Total %
branch 30 46 65.2


line true false branch
55 0 47 if ($$self{'debug'})
66 13 34 if ($txt =~ s/^([^=_-].+)\n[=_-]+\n+//) { }
2 32 elsif ($txt =~ s/^[-_]+\n//) { }
0 32 elsif ($txt =~ s/^([\d\.]+) (.+)\n//) { }
7 25 elsif ($txt =~ s/^(\s*[*+-](\s+(.|\n)+?))(\n\n|\n\s*[*+-])/$4/) { }
2 23 elsif ($txt =~ s/^\s+(([^\s].+\n){2,})//) { }
2 21 elsif ($txt =~ s/^\s+(((.+)\n\n))//) { }
0 21 elsif ($txt =~ s/^(([ \t]+[^\s\n*+=-].+\n){2,})//) { }
1 20 elsif ($txt =~ s/^([\$\#])\s+(((.+)\n){1,})//) { }
18 2 elsif ($txt =~ s/^([^\s](([^*+\n-].+)\n){1,})//) { }
68 0 13 if $$self{'debug'}
74 0 2 if $$self{'debug'}
80 0 0 if $$self{'debug'}
86 0 7 if $$self{'debug'}
99 0 2 if $$self{'debug'}
105 0 2 if $$self{'debug'}
115 0 0 if $$self{'debug'}
127 0 1 if $$self{'debug'}
137 0 18 if $$self{'debug'}
141 45 2 if (defined $opt)
144 0 45 if ($$self{'debug'})
151 38 7 if ($last_node) { }
164 0 7 if ($tries > 0 and length $txt > 0)