blib/lib/Moops/TraitFor/Keyword/rw.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 14 | 14 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | n/a | ||
total | 19 | 19 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 1 | 1 | 865 | use v5.14; | |||
1 | 3 | ||||||
2 | 1 | 1 | 7 | use strict; | |||
1 | 2 | ||||||
1 | 39 | ||||||
3 | 1 | 1 | 7 | use warnings FATAL => 'all'; | |||
1 | 2 | ||||||
1 | 74 | ||||||
4 | 1 | 1 | 7 | no warnings qw(void once uninitialized numeric); | |||
1 | 3 | ||||||
1 | 124 | ||||||
5 | |||||||
6 | package Moops::TraitFor::Keyword::rw; | ||||||
7 | |||||||
8 | our $AUTHORITY = 'cpan:TOBYINK'; | ||||||
9 | our $VERSION = '0.038'; | ||||||
10 | |||||||
11 | 1 | 1 | 8 | use Moo::Role; | |||
1 | 3 | ||||||
1 | 9 | ||||||
12 | |||||||
13 | around arguments_for_moosex_mungehas => sub { | ||||||
14 | my $next = shift; | ||||||
15 | my $self = shift; | ||||||
16 | return ('is_rw', $self->$next(@_)); | ||||||
17 | }; | ||||||
18 | |||||||
19 | 1; |