Asana/Role/HasStories.pm

filter: Statementstmt 46.6% 7 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 28.5% 2 / 7 Podpod 100% 3 / 3 totaltotal 48.0% 12 / 25 CC 1 SCAR 5.4
CC
1
Cov
47%
stories
2.0
__ANON__
2.0
create_story
2.0
CRAP 1.7
« Asana/Role/HasClient.pm ↑ Summary Asana/Role/CanReload.pm »
1 package WWW::Asana::Role::HasStories;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $WWW::Asana::Role::HasStories::AUTHORITY = 'cpan:GETTY';
4 }
5 {
6 1 $WWW::Asana::Role::HasStories::VERSION = '0.003';
7 }
8 # ABSTRACT: Role for Asana classes which have stories
9  
10 1 ▶use MooX::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12  
13 0 ▶sub stories {
Subroutine stories: not called CC=1 SCAR=6.9
Pod documented
14 0 my ( $self ) = @_;
15 0 ▶ $self->do('[Story]', 'GET', $self->own_base_args, 'stories', sub { target => $self });
Subroutine __ANON__: not called CC=1 SCAR=6.9
16 }
17  
18  
19 0 ▶sub create_story {
Subroutine create_story: not called CC=1 SCAR=6.9
Pod documented
20 0 my ( $self, @args ) = @_;
21 0 unshift @args, 'text';
22 0 ▶ $self->do('Story', 'POST', $self->own_base_args, 'stories', { @args }, sub { target => $self });
Subroutine __ANON__: not called CC=1 SCAR=6.9
23 }
24  
25  
26 0 ▶sub comment { shift->create_story(@_) }
Subroutine comment: not called CC=1 SCAR=6.9
Pod documented
27  
28 1 1;
29 __END__
« Asana/Role/HasClient.pm ↑ Summary Asana/Role/CanReload.pm »