DDG/Block/Any.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 93.3% 14 / 15 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
get_triggers_of_plugin
1.0
CRAP 1.0
« DDG.pm ↑ Summary DDG/Meta/CountryCodes.pm »
1 package DDG::Block::Any;
2 2 our $AUTHORITY = 'cpan:DDG';
3 # ABSTRACT: EXPERIMENTAL
4 2 $DDG::Block::Any::VERSION = '1016';
5 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 with qw( DDG::Block );
8  
9 # _______ ______ _____ ____ ___ __ __ _____ _ _ _____ _ _
10 # | ____\ \/ / _ \| ____| _ \|_ _| \/ | ____| \ | |_ _|/ \ | |
11 # | _| \ /| |_) | _| | |_) || || |\/| | _| | \| | | | / _ \ | |
12 # | |___ / \| __/| |___| _ < | || | | | |___| |\ | | |/ ___ \| |___
13 # |_____/_/\_\_| |_____|_| \_\___|_| |_|_____|_| \_| |_/_/ \_\_____|
14 #
15 # API MIGHT CHANGE
16 #
17  
18 sub request {
19 my ( $self, $request ) = @_;
20 my @results;
21 for (@{$self->plugin_objs}) {
22 my $trigger = $_->[0];
23 my $plugin = $_->[1];
24 push @results, $self->handle_request_matches($plugin,$request,0);
25 return @results if $self->return_one && @results;
26 }
27 return @results;
28 }
29  
30 2 ▶sub get_triggers_of_plugin { return; }
Subroutine get_triggers_of_plugin: called CC=1 SCAR=0.0
Pod undocumented
31  
32 2 1;
33  
34 __END__
« DDG.pm ↑ Summary DDG/Meta/CountryCodes.pm »