Branch Coverage

lib/Dancer/Plugin/Queue.pm
Criterion Covered Total %
branch 9 18 50.0


line true false branch
20 3 0 unless (defined $name)
21 3 0 if (keys %$conf == 1) { }
0 0 elsif (exists $$conf{'default'}) { }
33 2 1 if defined $queues{$name}
36 0 1 unless my $queue_conf = $$conf{$name}
39 0 1 unless my $class = $$queue_conf{'class'}
44 0 1 unless try_load_class($class)
47 0 1 unless $class->can('DOES') and $class->DOES('Dancer::Plugin::Queue::Role::Queue')
50 0 1 unless my $object = eval { do { $class->new($$queue_conf{'options'} || {}) } }