RWDE/DB/Immutable.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
update_record
2.0
create_record
2.0
BEGIN
2.0
CRAP 2.0
1 package RWDE::DB::Immutable;
2  
3 use strict;
4 use warnings;
5  
6 use vars qw($VERSION);
7 $VERSION = sprintf "%d", q$Revision: 508 $ =~ /(\d+)/;
8  
9 sub update_record {
10 my ($self, $params) = @_;
11  
12 return throw RWDE::DevelException({ info => 'You may not modify or update immutable records through the API' . $self });
13 }
14  
15 sub create_record {
16 my ($self, $params) = @_;
17  
18 return throw RWDE::DevelException({ info => 'You may not modify or update immutable records through the API' . $self });
19 }
20  
21 1;