use Test::More;
use Test::Deep;
+use Test::Warn;
use Test::Exception;
use lib qw(t/lib);
use DBICTest;
);
TODO: {
- my $row = $rs->next;
+ my ($row) = $rs->all;
local $TODO = 'Something is wrong with filter type rels, they throw on incomplete objects >.<';
lives_ok {
} 'no exception';
}
-is ($rs->cursor->next, undef, 'cursor exhausted');
-
-
TODO: {
local $TODO = 'this does not work at all, need to promote rsattrs to an object on its own';
# make sure has_many column redirection does not do weird stuff when collapse is requested
for my $use_next (0, 1) {
my @random_cds;
if ($use_next) {
- while (my $o = $rs_random->next) {
- push @random_cds, $o;
- }
+ warnings_exist {
+ while (my $o = $rs_random->next) {
+ push @random_cds, $o;
+ }
+ } qr/performed an eager cursor slurp underneath/,
+ 'Warned on auto-eager cursor';
}
else {
@random_cds = $rs_random->all;