Branch Coverage

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


line true false branch
43 0 0 unless $dsn
48 0 0 unless my $db = $self->$get_db
50 0 0 ref $c ? :
51 0 0 if (my $row = $sth->fetchrow_hashref)
128 0 0 if ($page_id =~ /\A(.+)\?(.+)\z/msu) { }
141 0 0 if ($c->req->json->{'session'})
162 0 0 unless $self->config("open_signups")
164 0 0 unless my $db = $self->$get_db
166 0 0 unless my $p = $c->req->json->{'password'}
171 0 0 if ($sth->execute($u, $hash, $e, scalar time)) { }
189 0 0 unless my $db = $self->$get_db
196 0 0 if (my $row = $sth->fetchrow_hashref) { }
213 0 0 unless my $db = $self->$get_db
226 0 0 unless my $db = $self->$get_db
241 0 0 unless my $db = $self->$get_db
243 0 0 unless my $session = $self->$get_session($c)
246 0 0 unless my $data = $c->req->json->{'stored_data'}
249 0 0 if ($sth->execute($session->{'id'}, $story_id, $slug, $label, $now, $now, $data)) { }
260 0 0 unless my $db = $self->$get_db
266 0 0 if (my $row = $sth->fetchrow_hashref) { }
277 0 0 unless my $db = $self->$get_db
281 0 0 if ($c->req->json->{'stored_data'}) { }
283 0 0 if ($sth->execute(scalar time, $c->req->json->{'stored_data'}, $session->{'id'}, $story_id, $slug)) { }
292 0 0 if ($sth->execute($session->{'id'}, $story_id, $slug)) { }