Devel-NYTProf

 view release on metacpan or  search on metacpan

t/lib/NYTProfTest.pm  view on Meta::CPAN

458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
    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 )