blib/lib/Bot/Cobalt.pm

filter: Statementstmt 62.5% 15 / 24 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 100% 2 / 2 totaltotal 59.4% 22 / 37 SCAR 13.6
CC
3
Cov
54%
instance
12.0
new
2.0
BEGIN
1.0
CRAP 3.9
« blib/lib/Bot/Cobalt/Conf/File/Channels.pm ↑ Summary blib/lib/Bot/Cobalt/Plugin/OutputFilters/StripColor.pm »
1 package Bot::Cobalt;
2 5 $Bot::Cobalt::VERSION = '0.021002';
3 5 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 ▶use Import::Into;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 5 ▶use Bot::Cobalt::Core::Sugar ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub import {
11 19 ▶ Bot::Cobalt::Core::Sugar->import::into(scalar caller, @_[1 .. $#_])
Subroutine import: called CC=1 SCAR=0.0
12 }
13  
14 sub instance {
15 0 ▶ require Bot::Cobalt::Core;
Subroutine instance: not called CC=3 SCAR=24.8
Pod documented
16 0 shift;
17 0 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 0 0 0
18 ## Someone tried to create a fresh instance, but they really
19 ## wanted a Bot::Cobalt::Core.
20 ## Behavior may change.
21 0 return Bot::Cobalt::Core->instance(@_)
22 }
23  
24 0 ▶ unless (Bot::Cobalt::Core->has_instance) {
Branch: 1 branch
BranchTrueFalseTotal
unless ("Bot::Cobalt::Core"->has_instance) 0 0 0
25 0 carp "Tried to retrieve instance but no active Bot::Cobalt::Core found";
26 return
27 0 }
28  
29 Bot::Cobalt::Core->instance
30 0 }
31  
32 sub new {
33 0 ▶ croak "Bot::Cobalt is a stub; it cannot be constructed.\n"
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
34 . "See the perldoc for Bot::Cobalt::Core";
35 }
36  
37 5 1;
38 __END__
« blib/lib/Bot/Cobalt/Conf/File/Channels.pm ↑ Summary blib/lib/Bot/Cobalt/Plugin/OutputFilters/StripColor.pm »