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) { }
130 0 0 if ($c->req->json->{'session'})
151 0 0 unless $self->config("open_signups")
153 0 0 unless my $db = $self->config("database")
155 0 0 unless my $p = $c->req->json->{'password'}
160 0 0 if ($sth->execute($u, $hash, $e, scalar time)) { }
178 0 0 unless my $db = $self->config("database")
185 0 0 if (my $row = $sth->fetchrow_hashref) { }
202 0 0 unless my $db = $self->config("database")
215 0 0 unless my $db = $self->config("database")
230 0 0 unless my $db = $self->config("database")
235 0 0 unless my $data = $c->req->json->{'stored_data'}
238 0 0 if ($sth->execute($session->{'id'}, $story_id, $slug, $label, $now, $now, $data)) { }
249 0 0 unless my $db = $self->config("database")
255 0 0 if (my $row = $sth->fetchrow_hashref) { }
266 0 0 unless my $db = $self->config("database")
270 0 0 if ($c->req->json->{'stored_data'}) { }
272 0 0 if ($sth->execute(scalar time, $c->req->json->{'stored_data'}, $session->{'id'}, $story_id, $slug)) { }
281 0 0 if ($sth->execute($session->{'id'}, $story_id, $slug)) { }