Branch Coverage

blib/lib/WWW/FetchStory/Fetcher/FanfictionNet.pm
Criterion Covered Total %
branch 0 94 0.0


line true false branch
104 0 0 if ($content =~ m[<div\s+id=content><center><b>([^<]+)</b>\s*by\s*<a href='/u/\d+/'>([^<]+)</a>])
111 0 0 if $self->{'verbose'} > 1
112 0 0 if $self->{'verbose'} > 1
115 0 0 if $self->{'verbose'} > 1
118 0 0 if $self->{'verbose'} > 1
121 0 0 if ($content =~ / id='storycontent'\s*>(.*?)\s*<div align=center>/s) { }
0 0 elsif ($content =~ m[ id='storycontent'\s*>(.*?)\s*<center>.*?Ch \d+ of <a href='[^']+'>\d+</a>.*?<br>\s*<span class='xbut corner_round'>]s) { }
0 0 elsif ($content =~ /class='storycontent' id='storycontent'\s*>(.*?)\s*<center>\s*<br>\s*<span class='xbut corner_round'>/s) { }
0 0 elsif ($content =~ m[class='storycontent puretext' id='storycontent'\s*>(.*?)\s*</div>\s*</div>\s*<div id='content' class='puretext'>]s) { }
0 0 elsif ($content =~ m[id=storycontent class=storycontent>(.*?)\s*</div>\s*</div>\s*<div id=content>]s) { }
0 0 elsif ($content =~ m[id=storycontent class=storycontent>(.*?)\s*</div>\s*<div id=content>]s) { }
0 0 elsif ($content =~ m[<div id=storytext class=storytext>(.*?)</div>]s) { }
150 0 0 if ($story) { }
160 0 0 if $title eq $chapter
161 0 0 if $chapter eq ""
164 0 0 if ($story)
167 0 0 if $author
168 0 0 if $universe
218 0 0 if ($args{'url'} =~ m[https?://www.fanfiction.net/s/(\d+)/]) { }
228 0 0 if ($content =~ m[href='(/u/\d+/[-\w]+)'>([^<]+)</a>]s) { }
232 0 0 if $self->{'verbose'} > 1
239 0 0 if ($auth_url and $sid) { }
242 0 0 if ($auth_page =~ m[<a href="/s/$sid/\d+/[-\w]+">.*?<div\s*class='[-\w\s]+'>([^<]+)<div]s) { }
0 0 elsif ($auth_page =~ m[<a class=reviews href='/r/$sid/'>reviews</a>\s*<div class='z-indent z-padtop'>([^<]+)<div]s) { }
290 0 0 if (defined $args{'urls'})
299 0 0 if (@chapters == 0 or @chapters == 1)
302 0 0 if ($content =~ /-\s+Chapters:\s+(\d+)\s+-\s+Words:\s+[\d,]/is) { }
312 0 0 if $self->{'verbose'} > 1
338 0 0 if ($content =~ /Rated:\s*[+\w]+,\s*English,\s*([^,]+),\s*(.*?),\s*Words:/) { }
0 0 elsif ($content =~ /Rated:\s*[+\w]+,\s*English,\s*([^,]+),\s*([^,]+),\s*Words:[^<]+/) { }
0 0 elsif ($content =~ /Rated:\s*[+\w]+,\s*English,\s*([^,]+),\s*Words:[^<]+/) { }
0 0 elsif ($content =~ /Rated:\s*[\w]+,\s*English,\s*([^,]+),\s*([^,]+),\s*(P:[^<]+)</) { }
357 0 0 if ($category =~ /\./) { }
395 0 0 if ($content =~ /Rated:\s*[+\w]+,\s*English,\s*([^,]+),\s*(.*?),\s*Words:/) { }
0 0 elsif ($content =~ /Rated:\s*[+\w]+,\s*English,\s*([^,]+),\s*([^,]+),\s*Words:[^<]+/) { }
0 0 elsif ($content =~ /Rated:\s*[+\w]+,\s*English,\s*([^,]+),\s*Words:[^<]+/) { }
0 0 elsif ($content =~ /Rated:\s*[-\w]+,\s*English,\s*([^,]+),\s*([^,]+),\s*(P:[^<]+)</) { }
414 0 0 if ($characters =~ /\./) { }
473 0 0 if ($content =~ m[&#187; <a href="/(?:anime|book|cartoon|comic|game|misc|movie|play|tv)/[-\w]+/">([^<]+)</a>]) { }
498 0 0 if ($author =~ m[<a href='/u/\d+/[-\w]+'>([^<]+)</a>]s)
520 0 0 if ($content =~ m[&#187; <b>([^<]+)</b>]s) { }
0 0 elsif ($content =~ m[<title>([^<]+)\s*Chapter[^<]+</title>]is) { }
0 0 elsif ($content =~ m[<title>([^<]+), a [^<]+ fanfic [|] FanFiction</title>]is) { }
555 0 0 if ($content =~ /^Chapter\s*(\d+:[^<]+)<br/m) { }
0 0 elsif ($content =~ m[<option[^>]+selected>([^<]+)</option>]s) { }
0 0 elsif ($content =~ /<SELECT title='chapter navigation'.*?<option[^>]+selected>([^<]+)</s) { }
0 0 elsif ($content =~ m[<title>([^<]+)</title>]is) { }