File Coverage

blib/lib/App/bif/update.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::update;
2 1     1   1952628 use strict;
  1         3  
  1         48  
3 1     1   5 use warnings;
  1         2  
  1         32  
4 1     1   5 use Bif::Mo;
  1         1  
  1         8  
5              
6             our $VERSION = '0.1.5_5';
7             extends 'App::bif';
8              
9             sub run {
10 1     1 1 3 my $self = shift;
11 1         4 my $opts = $self->opts;
12 1         7 my $info = $self->get_node( $self->uuid2id( $opts->{id} ) );
13              
14             return $self->new_cmd(
15             "App::bif::update::$info->{kind}",
16             opts => {
17             id => $info->{id},
18             title => $opts->{title},
19             message => $opts->{message}
20             }
21 0           )->run;
22             }
23              
24             1;
25             __END__