KiokuDB/Meta/Attribute/DoNotSerialize.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 93.7% 15 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« KiokuDB/TypeMap/Entry/Std/ID.pm ↑ Summary KiokuDB/Test/Digested.pm »
1 #!/usr/bin/perl
2  
3 package KiokuDB::Meta::Attribute::DoNotSerialize;
4 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Moose::Util qw(does_role);
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶sub Moose::Meta::Attribute::Custom::Trait::KiokuDB::DoNotSerialize::register_implementation { __PACKAGE__ }
Subroutine register_implementation: called CC=1 SCAR=0.0
Pod undocumented
11  
12 1 __PACKAGE__
13  
14 __END__
15  
16 =pod
17  
18 =head1 NAME
19  
20 KiokuDB::Meta::Attribute::DoNotSerialize - Trait for skipped attributes
21  
22 =head1 SYNOPSIS
23  
24 # in your class:
25  
26 package Foo;
27 use Moose;
28  
29 has bar => (
30 traits => [qw(KiokuDB::DoNotSerialize)],
31 isa => "Bar",
32 is => "ro",
33 lazy_build => 1,
34 );
35  
36 =head1 DESCRIPTION
37  
38 This L<Moose::Meta::Attribute> trait provides tells L<KiokuDB> to skip an
39 attribute when serializing.
40  
41 L<KiokuDB> also recognizes L<MooseX::Meta::Attribute::Trait::DoNotSerialize>,
42 but if you don't want to install L<MooseX::Storage> you can use this instead.
43  
44 =cut
45  
46  
« KiokuDB/TypeMap/Entry/Std/ID.pm ↑ Summary KiokuDB/Test/Digested.pm »