Branch Coverage

blib/lib/Story/Interact/WWW.pm
Criterion Covered Total %
branch 0 44 0.0


line true false branch
40 0 0 unless my $db = $self->config("database")
42 0 0 ref $c ? :
43 0 0 if (my $row = $sth->fetchrow_hashref)
120 0 0 if ($page_id =~ /\A(.+)\?(.+)\z/msu) { }
133 0 0 if ($c->req->json->{'session'})
154 0 0 unless $self->config("open_signups")
156 0 0 unless my $db = $self->config("database")
158 0 0 unless my $p = $c->req->json->{'password'}
163 0 0 if ($sth->execute($u, $hash, $e, scalar time)) { }
181 0 0 unless my $db = $self->config("database")
188 0 0 if (my $row = $sth->fetchrow_hashref) { }
205 0 0 unless my $db = $self->config("database")
218 0 0 unless my $db = $self->config("database")
233 0 0 unless my $db = $self->config("database")
238 0 0 unless my $data = $c->req->json->{'stored_data'}
241 0 0 if ($sth->execute($session->{'id'}, $story_id, $slug, $label, $now, $now, $data)) { }
252 0 0 unless my $db = $self->config("database")
258 0 0 if (my $row = $sth->fetchrow_hashref) { }
269 0 0 unless my $db = $self->config("database")
273 0 0 if ($c->req->json->{'stored_data'}) { }
275 0 0 if ($sth->execute(scalar time, $c->req->json->{'stored_data'}, $session->{'id'}, $story_id, $slug)) { }
284 0 0 if ($sth->execute($session->{'id'}, $story_id, $slug)) { }