Branch Coverage

blib/lib/Bot/Cobalt/Lang.pm
Criterion Covered Total %
branch 16 22 72.7


line true false branch
54 1 4 if $self->has_absolute_path
84 0 3 unless $core_set_yaml
101 3 3 if $self->use_core
104 1 5 if ($self->use_core_only)
115 0 0 if (not $self->use_core) { }
124 0 5 unless my $loaded_set = &try(sub { 'Bot::Cobalt::Serializer'->new->readfile($self->_full_lang_path); } , &catch(sub { if (not $self->use_core) { $croakable = 'readfile() failure for ' . $self->lang . '(' . $self->_full_lang_path . '): ' . $_; undef; } else { carp('Language load failure for ' . $self->lang . ": $_\n"); +{'RPL', {}}; } ; } ))
126 2 3 if ($self->use_core)
130 0 2 if ($rev_for_builtin > $rev_for_loaded)
142 0 5 unless ref $loaded_rpl_hash eq 'HASH'
163 6 1 unless ($self->use_core_only)
164 1 5 unless $self->has_absolute_path or $self->has_lang_dir