lib/Meta/Grapher/Moose/Renderer/Plantuml/Link.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
to_plantuml
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Meta::Grapher::Moose::Renderer::Plantuml::Link;
2  
3 use strict;
4 use warnings;
5 use namespace::autoclean;
6  
7 our $VERSION = '1.03';
8  
9 use Digest::MD5 qw(md5_hex);
10  
11 use Moose;
12  
13 has from => (
14 is => 'ro',
15 isa => 'Str',
16 required => 1,
17 );
18  
19 has to => (
20 is => 'ro',
21 isa => 'Str',
22 required => 1,
23 );
24  
25 sub to_plantuml {
26 my $self = shift;
27  
28 return <<"END";
29 "@{[ md5_hex($self->to) ]}" --> "@{[ md5_hex($self->from) ]}"
30 END
31 }
32  
33 __PACKAGE__->meta->make_immutable;
34  
35 1;
36  
37 # ABSTRACT: Utility class for Meta::Grapher::Moose::Renderer::Plantuml
38  
39 __END__