Branch Coverage

blib/lib/DDG/Block/Blockable/Triggers.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
45 2 45 if (ref $args[0] eq 'CODE') { }
0 45 elsif (ref $args[0] eq 'HASH') { }
7 38 elsif (ref $args[0] eq 'Regexp') { }
52 5 33 if (scalar @args > 2) { }
60 14 33 ref $params{$trigger_type} eq 'ARRAY' ? :
61 0 47 unless @triggers
70 2 55 ref $_ eq 'CODE' ? :
72 39 8 if (grep {$_ eq $trigger_type;} @words_types) { }
8 0 elsif (grep {$_ eq $trigger_type;} @regexp_types) { }
73 0 39 if $self->has_block_type and $self->block_type ne 'Words'
76 1 7 if $self->has_block_type and $self->block_type ne 'Regexp'
79 0 9 unless ref $_ eq 'Regexp'
82 0 46 unless $self->has_block_type
83 35 11 unless defined $self->triggers->{$_}