File Coverage

blib/lib/Sieve/Generator/Lines.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1 1     1   8354 use v5.36.0;
  1         3  
2             package Sieve::Generator::Lines 0.001;
3             # ABSTRACT: role for objects that render as lines of Sieve code
4              
5 1     1   6 use Moo::Role;
  1         1  
  1         22  
6              
7             #pod =head1 DESCRIPTION
8             #pod
9             #pod This role is consumed by all objects that render as one or more complete lines
10             #pod of Sieve code. It requires a single method, C.
11             #pod
12             #pod This role isn't really meant to be used directly, and should be considered an
13             #pod implementation detail that may go away.
14             #pod
15             #pod =method as_sieve
16             #pod
17             #pod my $sieve_text = $lines_obj->as_sieve;
18             #pod my $sieve_text = $lines_obj->as_sieve($indent_level);
19             #pod
20             #pod This method renders the object as a string of Sieve code. The optional
21             #pod C<$indent_level> argument is a non-negative integer controlling the
22             #pod indentation depth; each level adds two spaces. If not given, no indenting is
23             #pod added.
24             #pod
25             #pod =cut
26              
27             requires 'as_sieve';
28              
29 1     1   393 no Moo::Role;
  1         2  
  1         2  
30             1;
31              
32             __END__