Mark a few more failing distros
[gitmo/Moose.git] / benchmarks / cmop / lib / Bench / Construct.pm
CommitLineData
38bf2a25 1#!/usr/bin/perl
2
3package Bench::Construct;
4use Moose;
5use Moose::Util::TypeConstraints;
6
7has class => (
8 isa => "Str",
9 is => "ro",
10);
11
12eval {
13coerce ArrayRef
14 => from HashRef
15 => via { [ %$_ ] };
16};
17
18has args => (
19 isa => "ArrayRef",
20 is => "ro",
21 auto_deref => 1,
22 coerce => 1,
23);
24
25sub code {
26 my $self = shift;
27
28 my $class = $self->class;
29 my @args = $self->args;
30
31 sub { my $obj = $class->new( @args ) }
32}
33
34__PACKAGE__;
35
36__END__