Branch Coverage

lib/UR/Namespace/Command/Update/TabCompletionSpec.pm
Criterion Covered Total %
branch 10 24 41.6


line true false branch
37 1 0 if ($bx->specifies_value_for('classname') and not $bx->specifies_value_for('namespace_name'))
40 1 0 if $namespace
61 0 1 if ($req_exception)
70 0 1 if ($use_exception)
80 0 1 if (not $rename_ok and $! != 2)
84 0 1 unless ($self->output)
90 0 1 unless my $fh = 'IO::File'->new($self->output, 'w')
98 0 1 if (-s $cache_path) { }
100 0 0 unless unlink "$cache_path.bak"
103 1 0 if (-s "$cache_path.bak") { }
105 0 1 unless rename "$cache_path.bak", $cache_path
109 0 0 unless unlink $cache_path