File Coverage

blib/lib/Getopt/TypeConstraint/Mouse.pm
Criterion Covered Total %
statement 12 19 63.1
branch 0 2 0.0
condition n/a
subroutine 4 5 80.0
pod n/a
total 16 26 61.5


line stmt bran cond sub pod time code
1             package Getopt::TypeConstraint::Mouse;
2 3     3   90008 use 5.008005;
  3         11  
  3         125  
3 3     3   15 use strict;
  3         5  
  3         107  
4 3     3   25 use warnings;
  3         8  
  3         252  
5 3     3   43829 use Mouse;
  3         214773  
  3         39  
6             with qw(MouseX::Getopt::GLD);
7              
8             our $VERSION = "0.05";
9              
10             sub get_options {
11 0     0     my ($class, @args) = @_;
12 0           while (my ($key, $val) = splice @args, 0, 2) {
13 0           for my $alias (qw(desc description doc )) {
14 0 0         if (exists $val->{$alias}) {
15 0           $val->{documentation} = delete $val->{$alias};
16             }
17             }
18 0           has $key => ( is => 'ro', %$val);
19             }
20             $class->new_with_options()
21 0           }
22              
23             1;
24             __END__