blib/lib/Mo/is.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | 4 | 4 | 100.0 |
condition | 3 | 3 | 100.0 |
subroutine | 3 | 3 | 100.0 |
pod | n/a | ||
total | 16 | 16 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mo::is; | ||||||
2 | $Mo::is::VERSION = '0.40';$M="Mo::"; | ||||||
3 | $VERSION='0.40'; | ||||||
4 | 25 | 100 | 100 | 25 | 32 | *{$M.'is::e'}=sub{my($P,$e,$o)=@_;$o->{is}=sub{my($m,$n,%a)=@_;$a{is}or return$m;sub{$#_&&$a{is}eq'ro'&&caller ne'Mo::coerce'?die$n.' is ro':$m->(@_)}}}; | |
25 | 100 | 20 | 66 | ||||
7 | 9 | 38 | |||||
15 | 146 | ||||||
4 | 11 | ||||||
4 | 59 |