Geo-FIT
view release on metacpan or search on metacpan
t/03_value.t view on Meta::CPAN
#
# A - test field_value(), field_value_as_read(), named_type_value() and switched() with the above callbacks
my (@header_things, $ret_val);
$o->open or die $o->error;
@header_things = $o->fetch_header;
$ret_val = undef;
my $temp_max_i = 300; # temporary number of iterations (ensure we don't end up in endless loop if anything goes wrong)
my $i;
while ( my $ret = $o->fetch ) {
# we are testing with callbacks, so not much to do here
# as we add more tests, set the last to be when we have the latest one to test, i.e. will probably zones_target
# last if $device_info_got;
last if ++$i == $temp_max_i;
}
$o->close();
print "so debugger doesn't exit\n";
( run in 1.118 second using v1.01-cache-2.11-cpan-71847e10f99 )