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;$M="Mo::"; | ||||||
2 | $VERSION=0.38; | ||||||
3 | 25 | 100 | 100 | 31 | 203 | *{$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->(@_)}}}; | |
23 | 100 | 10 | 97 | ||||
9 | 9 | 50 | |||||
10 | 186 | ||||||
4 | 24 | ||||||
4 | 80 |