MoobX/Attributes.pm

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 0.0% 0 / 3 totaltotal 92.8% 39 / 42 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« MoobX/Trait/Observer.pm ↑ Summary
1 package MoobX::Attributes;
2 10 our $AUTHORITY = 'cpan:YANICK';
3 #ABSTRACT: Attributes to annotate variables as MoobX observables
4 10 $MoobX::Attributes::VERSION = '0.1.2';
5  
6  
7 10 ▶use 5.20.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 10 ▶use MoobX '!:attributes';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 10 ▶use Attribute::Handlers;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 10 ▶no warnings 'redefine';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 4 ▶sub Observable :ATTR(SCALAR) {
Subroutine Observable: called CC=1 SCAR=0.0
Pod undocumented
16 4 my ($package, $symbol, $referent, $attr, $data) = @_;
17  
18 4 MoobX::observable_ref($referent);
19 10 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 ▶sub Observable :ATTR(ARRAY) {
Subroutine Observable: called CC=1 SCAR=0.0
Pod undocumented
22 1 my ($package, $symbol, $referent, $attr, $data) = @_;
23  
24 1 MoobX::observable_ref($referent);
25 10 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 1 ▶sub Observable :ATTR(HASH) {
Subroutine Observable: called CC=1 SCAR=0.0
Pod undocumented
28 1 my ($package, $symbol, $referent, $attr, $data) = @_;
29  
30 1 MoobX::observable_ref($referent);
31 10 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 10 1;
34  
35 __END__
« MoobX/Trait/Observer.pm ↑ Summary