line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
2383
|
use utf8; |
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
13
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package KiokuDB::Test::Fixture::Unicode; |
6
|
2
|
|
|
2
|
|
87
|
use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
21
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
14359
|
use Encode; |
|
2
|
|
|
|
|
20585
|
|
|
2
|
|
|
|
|
201
|
|
9
|
2
|
|
|
2
|
|
15
|
use Test::More; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
17
|
|
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
621
|
use KiokuDB::Test::Person; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
44
|
|
12
|
2
|
|
|
2
|
|
878
|
use KiokuDB::Test::Employee; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
88
|
|
13
|
2
|
|
|
2
|
|
893
|
use KiokuDB::Test::Company; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
97
|
|
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
2
|
|
14
|
use namespace::clean -except => 'meta'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
13
|
|
16
|
|
|
|
|
|
|
|
17
|
2
|
|
|
2
|
|
882
|
use constant required_backend_roles => qw(UnicodeSafe); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
436
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
with qw(KiokuDB::Test::Fixture) => { excludes => 'required_backend_roles' }; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
my $unicode = "×ש×"; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub create { |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
return ( |
26
|
33
|
|
|
33
|
0
|
1020
|
KiokuDB::Test::Person->new( |
27
|
|
|
|
|
|
|
name => $unicode, |
28
|
|
|
|
|
|
|
), |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub verify { |
33
|
33
|
|
|
33
|
0
|
80
|
my $self = shift; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
$self->txn_lives(sub { |
36
|
33
|
|
|
33
|
|
73
|
my $dec = $self->lookup_ok( @{ $self->populate_ids } ); |
|
33
|
|
|
|
|
1086
|
|
37
|
|
|
|
|
|
|
|
38
|
33
|
|
|
|
|
195
|
isa_ok( $dec, "KiokuDB::Test::Person" ); |
39
|
|
|
|
|
|
|
|
40
|
33
|
|
|
|
|
13585
|
ok( Encode::is_utf8($dec->name), "preserved is_utf8" ); |
41
|
33
|
|
|
|
|
11631
|
is( $dec->name, $unicode, "correct value" ); |
42
|
33
|
|
|
|
|
294
|
}); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
__PACKAGE__ |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |