File Coverage

blib/lib/App/Sqitch/Plan/Blank.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 18 18 100.0


line stmt bran cond sub pod time code
1             package App::Sqitch::Plan::Blank;
2              
3 50     50   1120 use 5.010;
  50         226  
4 50     50   341 use utf8;
  50         126  
  50         377  
5 50     50   1291 use namespace::autoclean;
  50         123  
  50         424  
6 50     50   3966 use Moo;
  50         188  
  50         401  
7             extends 'App::Sqitch::Plan::Line';
8              
9             our $VERSION = 'v1.4.0'; # VERSION
10              
11             has '+name' => ( default => '', required => 0 );
12              
13 89     89 1 1674 sub format_name { '' }
14              
15             1;
16              
17             __END__
18              
19             =head1 Name
20              
21             App::Sqitch::Plan::Blank - Sqitch deployment plan blank line
22              
23             =head1 Synopsis
24              
25             my $plan = App::Sqitch::Plan->new( sqitch => $sqitch );
26             for my $line ($plan->lines) {
27             say $line->as_string;
28             }
29              
30             =head1 Description
31              
32             An App::Sqitch::Plan::Blank represents a blank line or comment-only line in
33             the plan file. See L<App::Sqitch::Plan::Line> for its interface. The only
34             difference is that the C<name> is always an empty string.
35              
36             =head1 Author
37              
38             David E. Wheeler <david@justatheory.com>
39              
40             =head1 License
41              
42             Copyright (c) 2012-2023 iovation Inc., David E. Wheeler
43              
44             Permission is hereby granted, free of charge, to any person obtaining a copy
45             of this software and associated documentation files (the "Software"), to deal
46             in the Software without restriction, including without limitation the rights
47             to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
48             copies of the Software, and to permit persons to whom the Software is
49             furnished to do so, subject to the following conditions:
50              
51             The above copyright notice and this permission notice shall be included in all
52             copies or substantial portions of the Software.
53              
54             THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55             IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56             FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
57             AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
58             LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
59             OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
60             SOFTWARE.
61              
62             =cut