BoardStreams/Error/DB/Duplicate.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package BoardStreams::Error::DB::Duplicate;
2  
3 use Moo;
4 extends 'BoardStreams::Error::DB';
5  
6 use experimental 'signatures';
7  
8 our $VERSION = "v0.0.36";
9  
10 has '+code' => (
11 default => 'duplicate_key',
12 );
13  
14 has '+data' => (
15 required => 1,
16 isa => sub ($data) {
17 die "data does not contain a 'key_name' field that has length" if !eval {length $data->{key_name}};
18 },
19 );
20  
21 1;