BoutrosLab-TSVStream
view release on metacpan or search on metacpan
t/00-tsvstream.t view on Meta::CPAN
use Test::Exception;
### Tests #################################################################################
package TestFooBar;
use Moose;
use namespace::autoclean;
use MooseX::ClassAttribute;
class_has '_fields' => (is => 'ro', isa => 'ArrayRef', default => sub { [ qw(foo bar) ] } );
with 'BoutrosLab::TSVStream::IO::Role::Fixed';
has 'foo' => ( is => 'rw', isa => 'Str' );
has 'bar' => ( is => 'rw', isa => 'Str' );
__PACKAGE__->meta->make_immutable;
package main;
t/01-tsvstreamdyn.t view on Meta::CPAN
use Test::Exception;
### Tests ######################################################################
package TestFooBar;
use Moose;
use namespace::autoclean;
use MooseX::ClassAttribute;
class_has '_fields' => (is => 'ro', isa => 'ArrayRef', default => sub { [ qw(foo bar) ] } );
with 'BoutrosLab::TSVStream::IO::Role::Dyn';
has 'foo' => ( is => 'rw', isa => 'Str' );
has 'bar' => ( is => 'rw', isa => 'Str' );
around BUILDARGS => sub {
my $orig = shift;
my $class = shift;
my $arg = ref($_[0]) ? $_[0] : { @_ };
( run in 1.123 second using v1.01-cache-2.11-cpan-5f2e87ce722 )