Silki/Web/Tab.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Silki::Web::Tab;
2 {
3 $Silki::Web::Tab::VERSION = '0.29';
4 }
5  
6 use strict;
7 use warnings;
8 use namespace::autoclean;
9  
10 use Moose;
11 use MooseX::SemiAffordanceAccessor;
12 use MooseX::StrictConstructor;
13  
14 has uri => (
15 is => 'ro',
16 isa => 'Str',
17 required => 1,
18 );
19  
20 has label => (
21 is => 'ro',
22 isa => 'Str',
23 required => 1,
24 );
25  
26 has tooltip => (
27 is => 'ro',
28 isa => 'Str',
29 required => 1,
30 );
31  
32 has id => (
33 is => 'ro',
34 isa => 'Str',
35 lazy => 1,
36 default => sub { $_[0]->label() },
37 );
38  
39 has is_selected => (
40 is => 'rw',
41 isa => 'Bool',
42 default => 0,
43 );
44  
45 __PACKAGE__->meta()->make_immutable();
46  
47 1;
48  
49 # ABSTRACT: A tab in the web UI
50  
51 __END__