Shipment/Activity.pm untested

filter: Statementstmt 0.0% 0 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod n/a totaltotal 0.0% 0 / 42 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Shipment::Activity;
2 $Shipment::Activity::VERSION = '3.11';
3 use strict;
4 use warnings;
5  
6  
7 use Shipment::Address;
8 use Scalar::Util qw/blessed/;
9 use Moo;
10 use MooX::Types::MooseLike::Base qw(:all);
11 use MooX::Types::MooseLike::DateTime qw( DateAndTime );
12 use Shipment::Base;
13 use namespace::clean;
14  
15  
16 has 'description' => (
17 is => 'rw',
18 isa => Str,
19 );
20  
21  
22 has 'date' => (
23 is => 'rw',
24 isa => DateAndTime,
25 coerce => \&Shipment::Base::coerce_datetime,
26 );
27  
28  
29 has 'location' => (
30 is => 'rw',
31 isa => InstanceOf ['Shipment::Address'],
32 );
33  
34  
35 1;
36  
37 __END__