Beacon/Record.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 33 SCAR 6.9
CC
1
Cov
0%
BUILD
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package NIST::Beacon::Record;
2  
3 use strict;
4 use warnings;
5  
6 # ABSTRACT: A Record object used by NIST::Beacon to represent received data.
7  
8 use Moo;
9  
10 has 'version' => (is => 'ro');
11 has 'frequency' => (is => 'ro');
12 has 'timestamp' => (is => 'ro');
13 has 'seed' => (is => 'ro');
14 has 'previous' => (is => 'ro');
15 has 'signature' => (is => 'ro');
16 has 'current' => (is => 'ro');
17 has 'status' => (is => 'ro');
18  
19  
20 sub BUILD {
21 my $self = shift;
22 my $param = shift;
23  
24 $self->{version} = $param->{version};
25 $self->{frequency} = $param->{frequency};
26 $self->{timestamp} = $param->{timeStamp};
27 $self->{seed} = $param->{seedValue};
28 $self->{previous} = $param->{previousOutputValue};
29 $self->{signature} = $param->{signatureValue};
30 $self->{current} = $param->{outputValue};
31 $self->{status} = $param->{statusCode};
32 }
33  
34 1;
35  
36 __END__