Branch Coverage

blib/lib/Glib/Ex/EnumBits.pm
Criterion Covered Total %
branch 6 18 33.3


line true false branch
39 0 12 if (@_ != 2)
42 0 12 if (my $coderef = $enum_class->can('EnumBits_to_display'))
44 0 0 if (defined(my $str = $enum_class->$coderef($nick)))
48 0 12 if (defined(my $str = do { no strict 'refs'; ${"${enum_class}::EnumBits_to_display";}{$nick} }))
61 0 24 if (@_ != 2)
66 0 24 if ($nick =~ /^([-_ ]+)$/)
83 0 24 if (defined $enum_class and defined(my $textdomain = do { no strict 'refs'; ${"${enum_class}::EnumBits_textdomain";} }) and 'Locale::Messages'->can('dgettext'))
96 0 0 if (@_ < 2)
99 0 0 if (my $coderef = $enum_class->can('EnumBits_to_description'))