Branch Coverage

blib/lib/Net/Twitter.pm
Criterion Covered Total %
branch 21 28 75.0


line true false branch
27 80 0 if ($namespace->has_default)
29 0 80 if (ref $base eq 'CODE')
34 0 80 unless $base
35 0 80 if $name =~ /^[+](.+)$/
43 80 4 unless (ref $_)
62 10 47 if $package->can('meta')
87 4 76 if (ref $t[0] eq 'HASH')
107 0 52 if ref $class
109 0 52 @_ == 1 && ref $_[0] eq 'HASH' ? :
113 10 42 if (defined(my $legacy = delete $args{'legacy'}))
114 0 10 if $traits
117 2 8 $legacy ? :
124 9 43 if ($args{'consumer_key'} and not grep(($_ eq 'AppAuth'), @$traits))
140 5 47 if ($class ne 'Net::Twitter')