lib/Type/Registry.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 18 | 39 | 46.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
71 | 1 | 0 | 1 | $library->isa("Exporter") and my $type_tag = do { no strict 'refs'; do { "${library}::EXPORT_TAGS" }->{'types'} } |
89 | 0 | 0 | 0 | Types::TypeTiny::is_ArrayLike($types) and @$types == 0 |
105 | 0 | 0 | 0 | Types::TypeTiny::is_ArrayLike($types) and @$types == 0 |
126 | 341 | 39 | 0 | exists $self->{$key} and $self->{$key}{'uniq'} != $hash{$key}{'uniq'} |
146 | 1044 | 66 | 0 | exists $self->{$name} and $self->{$name}{'uniq'} != $type->{'uniq'} |
line | l | !l | condition |
---|---|---|---|
72 | 1 | 9 | $types ||= ["-types"] |
88 | 0 | 0 | $types ||= [] |
104 | 0 | 0 | $types ||= [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
47 | 382 | 50 | 0 | $registries{$for} ||= $class->new |
53 | 8 | 0 | 0 | $registries{$for} ||= $class->new |
71 | 10 | 0 | 2 | $library->isa("Type::Library") or $library eq "Types::TypeTiny" |
84 | 0 | 1 | 0 | $types ||= $type_tag |
137 | 1107 | 3 | 1 | $name ||= do { &_croak("Expected named type constraint; got anonymous type constraint") if $type->is_anon; $type->name } |
179 | 1 | 0 | 0 | ref $self || $self |