File Coverage

blib/lib/Bot/Cobalt/IRC/Event/Topic.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Bot::Cobalt::IRC::Event::Topic;
2             $Bot::Cobalt::IRC::Event::Topic::VERSION = '0.021002';
3 6     6   15592 use strictures 2;
  6         1242  
  6         188  
4 6     6   1127 use Bot::Cobalt::Common qw/:types :string/;
  6         11  
  6         31  
5              
6 6     6   629 use Moo;
  6         6907  
  6         28  
7             extends 'Bot::Cobalt::IRC::Event::Channel';
8              
9             has topic => (
10             required => 1,
11             is => 'rw',
12             isa => Str,
13             );
14              
15             has stripped => (
16             lazy => 1,
17             is => 'ro',
18             isa => Str,
19             default => sub {
20             strip_color( strip_formatting( $_[0]->topic ) )
21             },
22             );
23              
24             1;
25             __END__