X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F100populate.t;fp=t%2F100populate.t;h=fa07ba5595ec0a55914adc6da25171fd75aa86d4;hb=277e30142fc9da75bd323bc6b21267aa32523287;hp=e7cb830886c6becf2c65f527ed102ce3a257f8ca;hpb=2a6dda4b4b591e4da531d6c78ff9dc9e359d5fd9;p=dbsrgits%2FDBIx-Class.git diff --git a/t/100populate.t b/t/100populate.t index e7cb830..fa07ba5 100644 --- a/t/100populate.t +++ b/t/100populate.t @@ -383,6 +383,7 @@ lives_ok { } 'literal+bind with semantically identical attrs works after normalization'; # test all kinds of population with stringified objects +# or with empty sets warnings_like { local $ENV{DBIC_RT79576_NOWARN}; @@ -438,10 +439,15 @@ warnings_like { [qw( rank name )], [ $rank, $fn ], ]}, + + 'empty set' => { AoA => [ + [qw( name rank )], + ]}, }; # generate the AoH equivalent based on the AoAs above for my $bag (values %$args) { + $bag->{AoH} = []; my @hdr = @{$bag->{AoA}[0]}; for my $v ( @{$bag->{AoA}}[1..$#{$bag->{AoA}}] ) { push @{$bag->{AoH}}, my $h = {};