blib/lib/App/bif/show.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 13 | 92.3 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 17 | 18 | 94.4 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package App::bif::show; | ||||||
2 | 7 | 7 | 5407 | use strict; | |||
7 | 10 | ||||||
7 | 285 | ||||||
3 | 7 | 7 | 57 | use warnings; | |||
7 | 12 | ||||||
7 | 252 | ||||||
4 | 7 | 7 | 39 | use Bif::Mo; | |||
7 | 11 | ||||||
7 | 56 | ||||||
5 | |||||||
6 | our $VERSION = '0.1.5_5'; | ||||||
7 | extends 'App::bif'; | ||||||
8 | |||||||
9 | sub run { | ||||||
10 | 1 | 1 | 1 | 2 | my $self = shift; | ||
11 | 1 | 5 | my $opts = $self->opts; | ||||
12 | 1 | 10 | my $info = $self->get_node( $self->uuid2id( $opts->{id} ) ); | ||||
13 | |||||||
14 | return $self->new_cmd( "App::bif::show::$info->{kind}", | ||||||
15 | 0 | opts => { id => $info->{id} } )->run; | |||||
16 | } | ||||||
17 | |||||||
18 | 1; | ||||||
19 | __END__ |