blib/lib/Acme/YAPC/Asia/2012/LTthon/Hakushu.pm

filter: Statementstmt 73.9% 17 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 100% 2 / 2 totaltotal 75.0% 24 / 32 CC 1 SCAR 2.5
CC
1
Cov
74%
hakushu
2.0
push
2.0
BEGIN
1.0
CRAP 1.3
↑ Summary
1 package Acme::YAPC::Asia::2012::LTthon::Hakushu;
2 2 ▶use 5.008_001;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 our $VERSION = '0.03';
7  
8 2 ▶use parent qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 our @EXPORT = qw(hakushu);
10  
11 2 ▶use Furl;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 0 ▶sub hakushu {
Subroutine hakushu: not called CC=1 SCAR=6.9
Pod documented
14 0 __PACKAGE__->push();
15 }
16  
17 0 ▶sub push {
Subroutine push: not called CC=1 SCAR=6.9
Pod documented
18 0 my($class) = @_;
19  
20 0 my $api = 'http://hachiojipm.org/hakushu/';
21  
22 0 my $ua = Furl->new(agent => sprintf '%s/%s', $class, $class->VERSION);
23  
24 0 my $res = $ua->post($api, [], [ send => 1 ]);
25  
26 0 return $res->code;
27 }
28  
29 2 1;
30 __END__
↑ Summary