Brick
view release on metacpan or search on metacpan
t/general/__fields_are_something.t view on Meta::CPAN
foreach my $index ( 0 .. $#$result )
{
my $entry = $result->[$index];
print STDERR "----- $entry->[0] ----------------------------\n" if $ENV{DEBUG};
do { print STDERR "\tpassed\n\n" if $ENV{DEBUG}; next } if $entry->[2];
my @data = ( $entry->[3] );
my @errors = ();
my $iterations = 0;
while( my $error = shift @data )
{
last if $iterations++ > 20; # debugging guard against infinity
# print STDERR "Iteration $iterations\n";
if( $error->{handler} =~ m/^__/ )
{
push @data, @{ $error->{errors} };
next;
}
push @errors, $error;
}
print STDERR Data::Dumper->Dump( [\@errors], [qw(errors)] ) if $ENV{DEBUG};
t/general/required_fields.t view on Meta::CPAN
foreach my $index ( 0 .. $#$result )
{
my $entry = $result->[$index];
print STDERR "----- $entry->[0] ----------------------------\n" if $ENV{DEBUG};
do { print STDERR "\tpassed\n\n" if $ENV{DEBUG}; next } if $entry->[2];
my @data = ( $entry->[3] );
my @errors = ();
my $iterations = 0;
while( my $error = shift @data )
{
last if $iterations++ > 20; # debugging guard against infinity
# print STDERR "Iteration $iterations\n";
if( $error->{handler} =~ m/^__/ )
{
push @data, @{ $error->{errors} };
next;
}
push @errors, $error;
}
print STDERR Data::Dumper->Dump( [\@errors], [qw(errors)] ) if $ENV{DEBUG};
t/use_cases/foursquare.t view on Meta::CPAN
foreach my $index ( 0 .. $#$result )
{
my $entry = $result->[$index];
print STDERR "----- $entry->[0] ----------------------------\n" if $ENV{DEBUG};
do { print STDERR "\tpassed\n\n" if $ENV{DEBUG}; next } if $entry->[2];
my @data = ( $entry->[3] );
my @errors = ();
my $iterations = 0;
while( my $error = shift @data )
{
last if $iterations++ > 20; # debugging guard against infinity
# print STDERR "Iteration $iterations\n";
if( $error->{handler} =~ m/^__/ )
{
push @data, @{ $error->{errors} };
next;
}
push @errors, $error;
}
#print STDERR Data::Dumper->Dump( [\@errors], [qw(errors)] ) ; #if $ENV{DEBUG};
t/use_cases/phone_number.t view on Meta::CPAN
{
my $entry = $result->[$index];
diag '-----' . $entry->get_label . "----------------------------\n"
if $ENV{DEBUG};
do { diag "\tpassed\n\n" if $ENV{DEBUG}; next } if $entry->get_result;
my @data = ( $entry->get_messages );
my @errors = ();
my $iterations = 0;
while( my $error = shift @data )
{
last if $iterations++ > 20; # debugging guard against infinity
# print STDERR "Iteration $iterations\n";
if( $error->{handler} =~ m/^__/ )
{
push @data, @{ $error->{errors} };
next;
}
push @errors, $error;
}
#print STDERR Data::Dumper->Dump( [\@errors], [qw(errors)] ) ; #if $ENV{DEBUG};
t/use_cases/zip_code.t view on Meta::CPAN
foreach my $index ( 0 .. $#$result )
{
my $entry = $result->[$index];
print STDERR "----- $entry->[0] ----------------------------\n" if $ENV{DEBUG};
do { print STDERR "\tpassed\n\n" if $ENV{DEBUG}; next } if $entry->passed;
my @data = ( $entry->get_messages );
my @errors = ();
my $iterations = 0;
while( my $error = shift @data )
{
last if $iterations++ > 20; # debugging guard against infinity
# print STDERR "Iteration $iterations\n";
if( $error->{handler} =~ m/^__/ )
{
push @data, @{ $error->{errors} };
next;
}
push @errors, $error;
}
#print STDERR Data::Dumper->Dump( [\@errors], [qw(errors)] ) ; #if $ENV{DEBUG};
( run in 1.281 second using v1.01-cache-2.11-cpan-71847e10f99 )