blib/lib/HTML/Notebook/Cell.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package HTML::Notebook::Cell;
2  
3 use strict;
4 use warnings;
5 use utf8;
6  
7 use Moose;
8 use UUID::Tiny ':std';
9 use namespace::autoclean;
10  
11 =encoding utf-8
12  
13 =head1 NAME
14  
15 HTML::Notebook::Cell - Notebook Cell
16  
17 =head1 SYNOPSIS
18  
19 use HTML::Notebook::Cell;
20 my $cell = HTML::Notebook::Cell->new(content => 'This is a generic cell');
21
22 =head1 DESCRIPTION
23  
24 Notebook cell
25  
26 =head1 METHODS
27  
28 =cut
29  
30 has 'content' => ( is => 'rw', );
31  
32 has 'id' => ( is => 'ro',
33 default => sub { return create_uuid_as_string(UUID_TIME) } );
34  
35 __PACKAGE__->meta()->make_immutable;
36  
37 1;
38  
39 __END__
40  
41 =head1 AUTHOR
42  
43 Pablo Rodríguez González
44  
45 =head1 BUGS
46  
47 Please report any bugs or feature requests via github: L<https://github.com/pablrod/p5-HTML-Notebook/issues>
48  
49 =head1 LICENSE AND COPYRIGHT
50  
51 Copyright 2016 Pablo Rodríguez González.
52  
53 The MIT License (MIT)
54  
55 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
56  
57 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
58  
59 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
60  
61 =cut
62