File Coverage

blib/lib/App/bif/update.pm
Criterion Covered Total %
statement 15 17 88.2
branch 0 6 0.0
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 21 29 72.4


line stmt bran cond sub pod time code
1             package App::bif::update;
2 1     1   5798 use strict;
  1         2  
  1         27  
3 1     1   5 use warnings;
  1         3  
  1         48  
4 1     1   7 use Bif::Mo;
  1         1  
  1         9  
5 1     1   5 use OptArgs 'class_optargs';
  1         3  
  1         7  
6              
7             our $VERSION = '0.1.5_6';
8             extends 'App::bif';
9              
10             sub run {
11 1     1 1 2 my $self = shift;
12 1         5 my $opts = $self->opts;
13 1         8 my $info = $self->get_node( $self->uuid2id( $opts->{id} ) );
14              
15             my ( $class, $newopts ) = class_optargs(
16             'App::bif',
17             'update',
18             $info->{kind},
19             $info->{id},
20             $opts->{status} ? $opts->{status} : (),
21             {
22             $opts->{message} ? ( message => $opts->{message} ) : (),
23 0 0         $opts->{title} ? ( title => $opts->{title} ) : (),
    0          
    0          
24             },
25             );
26              
27 0           return $self->dispatch( $class, opts => $newopts );
28             }
29              
30             1;
31             __END__