Branch Coverage

blib/lib/Sub/HandlesVia/CodeGenerator.pm.mite.pm
Criterion Covered Total %
branch 55 132 41.6


line true false branch
64 0 92 *{$_;}{'CODE'} ? :
68 0 92 *{$_;}{'CODE'} ? :
78 0 342 ref $_[0] ? :
84 0 342 @_ == 1 ? :
0 342 $meta->{'HAS_BUILDARGS'} ? :
89 342 0 if (exists $args->{'toolkit'})
95 342 0 if (exists $args->{'target'})
101 342 0 if (exists $args->{'attribute'})
107 325 17 if (exists $args->{'attribute_spec'})
108 0 325 unless do {
120 335 7 if (exists $args->{'isa'})
124 342 0 if (exists $args->{'coerce'})
125 0 342 unless do {
132 342 0 if not ref $args->{'coerce'}
150 342 0 do {
342 0 exists $args->{'env'} ? :
173 0 0 if (defined $args->{'sandboxing_package'})
179 0 0 unless ref \$args->{'sandboxing_package'} eq "SCALAR"
184 0 0 unless (do {
191 0 0 do {
0 342 exists $args->{'sandboxing_package'} ? :
202 340 2 if (exists $args->{'generator_for_slot'})
203 0 340 unless do {
215 342 0 if (exists $args->{'generator_for_get'})
216 0 342 unless do {
228 342 0 if (exists $args->{'generator_for_set'})
229 0 342 unless do {
241 342 0 if (exists $args->{'generator_for_default'})
242 0 342 unless do {
263 0 0 do {
0 342 exists $args->{'generator_for_args'} ? :
283 0 0 do {
0 342 exists $args->{'generator_for_arg'} ? :
303 0 0 do {
0 342 exists $args->{'generator_for_argc'} ? :
323 0 0 do {
0 342 exists $args->{'generator_for_currying'} ? :
343 0 0 do {
0 342 exists $args->{'generator_for_usage_string'} ? :
363 0 0 do {
0 342 exists $args->{'generator_for_self'} ? :
383 0 0 do {
0 342 exists $args->{'generator_for_type_assertion'} ? :
404 0 0 do {
0 342 exists $args->{'generator_for_error'} ? :
424 1 0 do {
1 341 exists $args->{'generator_for_prelude'} ? :
435 208 134 if (exists $args->{'method_installer'})
436 0 208 unless do {
449 0 342 exists $args->{'is_method'} ? :
455 342 0 exists $args->{'get_is_lvalue'} ? :
462 342 0 exists $args->{'set_checks_isa'} ? :
468 342 0 exists $args->{'set_strictly'} ? :
471 0 342 unless $meta->{'BUILD'}
0 342 if not $no_build and @{[] unless $meta->{'BUILD'};}
478 0 342 if @unknown
488 0 0 unless $meta->{'BUILD'}
496 342 0 defined ${^GLOBAL_PHASE} ? :
500 0 342 unless $meta->{'DEMOLISH'}
507 0 0 if $e
879 0 0 unless ref $_[1] eq "CODE"
885 0 6812 @_ > 1 ? :
973 0 2024 if exists $DOES{$role}
974 0 2024 if $role eq "Sub::HandlesVia::CodeGenerator"
975 0 2024 if ($INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta(ref $self || $self))
978 0 0 if $meta->can("does_role") and $meta->does_role($role)