Branch Coverage

blib/lib/CatalystX/RequestModel.pm
Criterion Covered Total %
branch 16 24 66.6


line true false branch
50 84 0 unless ("Moo::Role"->is_role($target))
53 0 0 unless ($target->can("request_metadata"))
64 0 84 if Role::Tiny::does_role($target, $default_role)
77 156 426 if (&Scalar::Util::blessed($_[0])) { }
91 312 42 unless ($opts{'required'})
92 0 312 if (exists $opts{'predicate'}) { }
100 354 0 if (my $info = delete $opts{'property'})
101 264 90 unless (ref $info || '') eq "HASH"
102 312 42 if defined $predicate
103 342 12 unless exists $info->{'omit_empty'}
109 84 0 if $target->can("has")
116 0 156 if ('Moo::Role'->is_role($target) or $target->can("${type}_metadata")) { }