Branch Coverage

blib/lib/MooseX/Getopt/OptionTypeMap.pm
Criterion Covered Total %
branch 22 34 64.7


line true false branch
24 1 473 if (builtin::blessed($type_or_name) and $type_or_name->isa("Moose::Meta::TypeConstraint::Union"))
27 1 0 if __PACKAGE__->has_option_type($union_type)
33 473 0 builtin::blessed($type_or_name) ? :
471 2 if exists $option_type_map{builtin::blessed($type_or_name) ? $type_or_name->name : $type_or_name}
35 2 0 builtin::blessed($type_or_name) ? :
37 0 2 unless defined $current
41 2 0 if exists $option_type_map{$parent->name}
51 1 473 if (builtin::blessed($type_or_name) and $type_or_name->isa("Moose::Meta::TypeConstraint::Union"))
55 1 0 if defined $option_type
61 473 0 builtin::blessed($type_or_name) ? :
63 471 2 if exists $option_type_map{$name}
65 2 0 ref $type_or_name ? :
67 0 2 unless defined $current
72 2 0 if exists $option_type_map{$current->name}
80 0 29 unless defined $type_name and defined $option_string
83 24 5 if (builtin::blessed($type_name)) { }
86 0 5 unless find_type_constraint($type_name)