blib/lib/Clustericious.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 5 | 8 | 62.5 |
line | l | !l | condition |
---|---|---|---|
54 | 25 | 0 | File::ShareDir::Dist::dist_share('Clustericious') || die('unable to find share directory') |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
51 | 8 | 25 | 0 | $dir //= do { require Path::Class::Dir; require File::ShareDir::Dist; 'Path::Class::Dir'->new(File::ShareDir::Dist::dist_share('Clustericious') || die('unable to find share directory')) } |
87 | 2 | 0 | 9 | $data->{$app_name} // do { my $url = 'Mojo::URL'->new('http://127.0.0.1'); $url->port('Clustericious'->_generate_port); $url = $url->to_string; $data->{$app_name} = $url; $file->spew(&JSON::MaybeXS::encode_json($data)); $url } |