| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Devel::Confess::Patch::UseDataDumpSkipObjects; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
461495
|
use 5.010001; |
|
|
1
|
|
|
|
|
6
|
|
|
4
|
1
|
|
|
1
|
|
7
|
use strict; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
37
|
|
|
5
|
1
|
|
|
1
|
|
7
|
no warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
180
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY |
|
8
|
|
|
|
|
|
|
our $DATE = '2024-02-13'; # DATE |
|
9
|
|
|
|
|
|
|
our $DIST = 'Devel-Confess-Patch-UseDataDumpSkipObjects'; # DIST |
|
10
|
|
|
|
|
|
|
our $VERSION = '0.001'; # VERSION |
|
11
|
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
780
|
use Module::Patch; |
|
|
1
|
|
|
|
|
30436
|
|
|
|
1
|
|
|
|
|
9
|
|
|
13
|
1
|
|
|
1
|
|
70
|
use base qw(Module::Patch); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
379
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our %config; |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub patch_data { |
|
18
|
|
|
|
|
|
|
return { |
|
19
|
|
|
|
|
|
|
v => 3, |
|
20
|
|
|
|
|
|
|
config => { |
|
21
|
|
|
|
|
|
|
-class_pattern => { |
|
22
|
|
|
|
|
|
|
schema => 're*', |
|
23
|
|
|
|
|
|
|
}, |
|
24
|
|
|
|
|
|
|
}, |
|
25
|
|
|
|
|
|
|
patches => [ |
|
26
|
|
|
|
|
|
|
{ |
|
27
|
|
|
|
|
|
|
action => 'replace', |
|
28
|
|
|
|
|
|
|
#mod_version => qr/^/, |
|
29
|
|
|
|
|
|
|
sub_name => '_ref_formatter', |
|
30
|
|
|
|
|
|
|
code => sub { |
|
31
|
0
|
|
|
0
|
|
|
require Data::Dump::SkipObjects; |
|
32
|
0
|
0
|
|
|
|
|
$Data::Dump::SkipObjects::CLASS_PATTERN = qr/$config{-class_pattern}/ if defined $config{-class_pattern}; |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
#local $SIG{__WARN__} = sub {}; |
|
35
|
|
|
|
|
|
|
#local $SIG{__DIE__} = sub {}; |
|
36
|
0
|
|
|
|
|
|
Data::Dump::SkipObjects::dump($_[0]); |
|
37
|
|
|
|
|
|
|
}, |
|
38
|
|
|
|
|
|
|
}, |
|
39
|
0
|
|
|
0
|
0
|
|
], |
|
40
|
|
|
|
|
|
|
}; |
|
41
|
|
|
|
|
|
|
} |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
|
44
|
|
|
|
|
|
|
# ABSTRACT: Use Data::Dump::SkipObjects to stringify some objects |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |