blib/lib/Cot/Plugin/Config.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 17 | 17 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 6 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 23 | 24 | 95.8 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Cot::Plugin::Config; | ||||||
2 | |||||||
3 | 1 | 1 | 954 | use strict; | |||
1 | 1 | ||||||
1 | 28 | ||||||
4 | 1 | 1 | 4 | use warnings; | |||
1 | 2 | ||||||
1 | 20 | ||||||
5 | 1 | 1 | 14 | use 5.008005; | |||
1 | 3 | ||||||
1 | 55 | ||||||
6 | our $VERSION = "0.11"; | ||||||
7 | $VERSION = eval $VERSION; | ||||||
8 | 1 | 1 | 4 | use parent qw(Cot::Plugin); | |||
1 | 2 | ||||||
1 | 8 | ||||||
9 | 1 | 1 | 55 | use Cot::Config; | |||
1 | 2 | ||||||
1 | 62 | ||||||
10 | |||||||
11 | sub init { | ||||||
12 | 1 | 1 | 0 | 3 | my ( $self, $c ) = @_; | ||
13 | 1 | 6 | $c->config( Cot::Config->config ); | ||||
14 | } | ||||||
15 | |||||||
16 | 1; | ||||||
17 | __END__ |