Branch Coverage

blib/lib/Mojolicious/Command/version.pm
Criterion Covered Total %
branch 10 20 50.0


line true false branch
15 0 1 'Mojo::JSON'->JSON_XS ? :
16 0 1 eval { do { require Mojo::Reactor::EV; 1 } } ? :
17 0 1 'Mojo::IOLoop::Client'->can_socks ? :
18 1 0 'Mojo::IOLoop::TLS'->can_tls ? :
19 0 1 'Mojo::IOLoop::Client'->can_nnr ? :
20 1 0 'Mojo::Base'->ROLES ? :
21 0 1 'Mojo::Base'->ASYNC ? :
40 0 1 unless my $latest = eval { do { $self->app->ua->max_redirects(10)->tap(sub { $_->proxy->detect; } )->get("fastapi.metacpan.org/v1/release/Mojolicious")->result->json->{'version'} } }
46 0 1 if $latest < $Mojolicious::VERSION
47 1 0 if $latest > $Mojolicious::VERSION