Devel-NYTProf
view release on metacpan or search on metacpan
t/lib/NYTProfTest.pm view on Meta::CPAN
458459460461462463464465466467468469470471472473474475476477478
if
(
$updated
) {
@got
=
sort
@got
;
@exp
=
sort
@exp
;
}
is_deeply(\
@got
, \
@exp
,
$testname
)
?
unlink
(
$got_file
)
: diff_files(
$exp_file
,
$got_file
,
$got_file
.
"_patch"
);
}
sub
update_file_content_array {
my
$lines
=
shift
;
my
$file_info_start
;
foreach
my
$i
(0 ..
$#$lines
) {
next
if
not
$lines
->[
$i
] =~ /^fid_fileinfo/;
# Remove path info that creeps in when run under prove
# Should perhaps use Regexp::Common, or borrow from it.
$lines
->[
$i
] =~ s|(\d\t\[ )(\w:/)?([\-\w\s]+/)+|$1|;
$file_info_start
||=
$i
;
last
if
$i
>
$file_info_start
+ 4;
( run in 0.636 second using v1.01-cache-2.11-cpan-65fba6d93b7 )