Branch Coverage

blib/lib/App/WatchLater.pm
Criterion Covered Total %
branch 0 28 0.0


line true false branch
48 0 0 unless $dbh->do("CREATE TABLE IF NOT EXISTS videos(\n video_id TEXT PRIMARY KEY,\n video_title TEXT,\n channel_id TEXT,\n channel_title TEXT,\n watched INTEGER NOT NULL DEFAULT 0\n);\n")
62 0 0 $opts->{'force'} ? :
90 0 0 unless $sth->execute
91 0 0 unless my $row = $sth->fetchrow_hashref
96 0 0 if exists $ENV{'BROWSER'}
98 0 0 if (/MSWin32/u or /cygwin/u)
101 0 0 if (/darwin/u)
104 0 0 if (/linux/u)
124 0 0 unless $sth->execute($vid)
130 0 0 unless (@video_ids)
136 0 0 if $opts->{'open'}
162 0 0 unless &GetOptions(\%opts, 'db-path|d=s', 'add|a', 'watch|w', 'force|f!', 'open|o!')
171 0 0 if $opts{'add'} and $opts{'watch'}
183 0 0 if ($opts{'watch'}) { }