sub TYPEDSCALAR {
$_[1] = (caller(0))[2];
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
Test::More::is($_[2], 'LTT', 'original type is ok');
();
}
}
{
- my $expect = qr/^coconut at \Q$0\E line 30/;
+ my $expect = qr/^coconut at \Q$0\E line 31/;
local $@;
eval q[
use Lexical::Types;
sub new_str {
$_[1] = 'str:' . (caller(0))[2];
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
Test::More::is($_[2], 'Str', 'original type is correct');
();
}
sub new_int {
$_[1] = (caller(0))[2];
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
Test::More::is($_[2], 'Int', 'original type is correct');
();
}
} else {
eval { $test->() };
}
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
is_deeply $got, $exp, $desc;
}
return $want ? @ret : $ret[0];
} else {
eval { $test->() };
}
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
is_deeply $got, $exp, $desc;
}
return $want ? @ret : $ret[0];
my $tid = threads->tid();
my ($file, $line) = (caller(0))[1, 2];
my $where = "at $file line $line in thread $tid";
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
Test::More::is($_[0], __PACKAGE__, "base type is correct $where");
Test::More::is($_[2], 'Tag', "original type is correct $where");
$_[1] = $tid;