Branch Coverage

blib/lib/MooseX/App/Exporter.pm
Criterion Covered Total %
branch 22 34 64.7


line true false branch
27 0 246 unless defined $symbol
48 0 117 if @rest % 2 == 1
55 2 115 ref $name eq 'ARRAY' ? :
58 88 29 if (not $meta->isa('Moose::Meta::Role') and $meta->meta->does_role('MooseX::App::Meta::Role::Class::Command'))
62 28 60 unless ($meta->has_app_attribute_metaroles)
65 0 91 if ($parent->meta->does_role('MooseX::App::Meta::Role::Class::Base'))
71 28 0 unless ($meta->has_app_attribute_metaroles)
76 28 3 if (&first(sub { $name eq $_; } , @commands))
83 2 30 $_->isa('Moose::Meta::Role::Composite') ? :
102 1 118 if ($attr =~ /^\+(.+)/)
104 1 0 unless ($meta_attribute->does('MooseX::App::Meta::Role::Attribute::Option'))
107 0 0 unless $_ eq 'AppOption'
108 1 0 unless &first(sub { $_ eq 'MooseX::App::Meta::Role::Attribute::Option' unless $_ eq 'AppOption'; } , @{$local_attributes{'traits'};})
178 17 0 unless &first(sub { $_ eq 'MooseX::App::Role::Common'; } , @{$apply_roles;})
182 15 0 if ($plugin_class->can('plugin_metaroles'))
184 15 0 if (ref $metaroles eq 'HASH')
204 0 15 if ($plugin_class->can('init_plugin'))