Branch Coverage

blib/lib/Mojo/Weixin/Base.pm
Criterion Covered Total %
branch 17 36 47.2


line true false branch
29 0 105 unless my $class = ref $self || $self and $attrs
31 0 105 if ref $value and ref $value ne 'CODE'
34 9 96 ref $attrs eq 'ARRAY' ? :
35 0 162 unless $attr =~ /^[a-zA-Z_]\w*$/
38 27 135 if (ref $value) { }
52 83 elsif (defined $value) { }
41 0 0 exists $_[0]{$attr} ? :
0 0 if @_ == 1
49 0 0 exists $_[0]{$attr} ? :
0 0 if @_ == 1
57 0 0 if @_ == 1
64 7 8 unless my $flag = shift()
67 1 7 if ($flag eq '-base') { }
0 7 elsif ($flag eq '-strict') { }
2 5 elsif (my $file = $flag and not $flag->can('new')) { }
79 8 0 if ($flag)
93 0 0 @_ > 1 ? :
0 0 @_ ? :