File Coverage

blib/lib/Sweat/Drill.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Sweat::Drill;
2              
3 4     4   28 use warnings;
  4         8  
  4         316  
4 4     4   57 use strict;
  4         8  
  4         185  
5 4     4   29 use Types::Standard qw(Bool Str);
  4         4  
  4         30  
6              
7 4     4   2621 use List::Util qw(shuffle);
  4         8  
  4         217  
8              
9 4     4   2314 use Moo;
  4         57744  
  4         26  
10 4     4   19086 use namespace::clean;
  4         8  
  4         40  
11              
12             has 'requires_a_chair' => (
13             is => 'ro',
14             default => 0,
15             isa => Bool,
16             );
17              
18             has 'name' => (
19             is => 'ro',
20             required => 1,
21             isa => Str,
22             );
23              
24             has 'requires_jumping' => (
25             is => 'ro',
26             default => 0,
27             isa => Bool,
28             );
29              
30             has 'requires_side_switching' => (
31             is => 'ro',
32             default => 0,
33             isa => Bool,
34             );
35              
36             has 'is_used' => (
37             is => 'rw',
38             default => 0,
39             isa => Bool,
40             );
41              
42             1;
43              
44             =head1 Sweat::Drill - Library for the `sweat` command-line program
45              
46             =head1 DESCRIPTION
47              
48             This library is intended for internal use by the L<sweat> command-line program,
49             and as such offers no publicly documented methods.
50              
51             =head1 SEE ALSO
52              
53             L<sweat>
54              
55             =head1 AUTHOR
56              
57             Jason McIntosh <jmac@jmac.org>