Branch Coverage

blib/lib/Sweat.pm
Criterion Covered Total %
branch 32 86 37.2


line true false branch
211 2 8 if defined $args->{$method}
212 0 8 if (defined $config->{$method})
224 8 8 if defined $args->{$method}
225 0 8 if (defined $config->{$method})
230 0 2 if (my $group_data = $config->{'groups'})
234 0 2 if ($config->{'no_news'})
253 0 2 unless (which($bare_speech_program))
259 0 2 if ($self->entertainment)
263 0 0 unless defined $program
265 0 0 unless (which($bare_program))
278 0 2 if ($self->entertainment)
292 0 0 if ($self->newsapi_key) { }
308 0 0 unless (fork)
364 1 12 if $drill->requires_side_switching
366 1 12 if $drill->requires_side_switching
369 0 13 if (defined $url)
370 0 0 if ($url =~ m[\Wyoutube.com/]u)
374 0 0 if (defined $self->url_program)
376 0 0 if (defined $self->refocus_program)
382 1 12 if ($drill->requires_side_switching) { }
399 28 0 unless $seconds
407 0 0 if ($keystroke)
410 0 0 if (grep {$_ == $current_second;} @spoken_seconds or $current_second and not $current_second % 10)
414 0 0 if ($current_second >= $seconds_label_cutoff) { }
432 0 40 if (-e $temp_file and $self->drill_length)
455 13 0 unless ($self->entertainment)
463 0 0 if ($drill->requires_side_switching) { }
468 0 0 if ($article) { }
485 1 0 unless $self->entertainment
493 0 0 unless (length $text)
507 0 0 if ($response->is_success) { }
529 41 2 if -e $temp_file
532 1 1 if ($pid) { }
592 2 24 unless (@drills)
597 0 26 if ($self->shuffle)
604 2 24 if @final_drills == $self->drill_count
657 0 28 if ($key =~ /-/u)
670 0 0 unless $self->refocus
674 0 0 if ((uname())[0] eq 'Darwin') { }
675 0 0 unless (which('pstree'))
683 0 0 if ($app) { }
694 0 0 unless (which('xdotool'))
702 0 0 if ($window_id) { }