File Coverage

blib/lib/IPC/PrettyPipe/Arg/Format.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 15 15 100.0


line stmt bran cond sub pod time code
1             package IPC::PrettyPipe::Arg::Format;
2              
3             # ABSTRACT: Encapsulate argument formatting attributes
4              
5 20     20   154 use Types::Standard qw[ Str ];
  20         48  
  20         139  
6              
7 20     20   19920 use Moo;
  20         185576  
  20         100  
8              
9             our $VERSION = '0.13';
10              
11             with 'IPC::PrettyPipe::Format';
12              
13              
14             shadowable_attrs( qw[ pfx sep ] );
15              
16 20     20   41384 use namespace::clean;
  20         207644  
  20         186  
17              
18              
19              
20              
21              
22              
23              
24              
25              
26              
27              
28              
29              
30              
31              
32              
33              
34              
35              
36              
37              
38             has pfx => (
39             is => 'rw',
40             isa => Str,
41             clearer => 1,
42             predicate => 1,
43             );
44              
45              
46              
47              
48              
49              
50              
51              
52              
53              
54              
55              
56              
57             has sep => (
58             is => 'rw',
59             isa => Str,
60             clearer => 1,
61             predicate => 1,
62             );
63              
64              
65              
66              
67              
68              
69              
70              
71              
72 1779     1779 1 4941 sub copy_into { $_[0]->_copy_attrs( $_[1], 'sep', 'pfx' ); }
73              
74              
75             1;
76              
77             #
78             # This file is part of IPC-PrettyPipe
79             #
80             # This software is Copyright (c) 2018 by Smithsonian Astrophysical Observatory.
81             #
82             # This is free software, licensed under:
83             #
84             # The GNU General Public License, Version 3, June 2007
85             #
86              
87             __END__