DR/ByteStream.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 84.6% 22 / 26 CC 2 SCAR 3.5
CC
2
Cov
88%
new
2.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« DR/PerlishTemplate.pm ↑ Summary
1 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package DBIx::DR::ByteStream;
6  
7 =head1 NAME
8  
9 DBIx::DR::ByteStream - ByteStream
10  
11 =head1 SYNOPSIS
12  
13 use DBIx::DR::ByteStream;
14  
15 my $str = DBIx::DR::ByteStream->new('abc');
16  
17 print "%s\n", $str->content;
18  
19 =head1 METHODS
20  
21 =head2 new
22  
23 Constructor.
24  
25 =head2 content
26  
27 Returns content.
28  
29 =cut
30  
31  
32 322 ▶sub new {
Subroutine new: called CC=2 SCAR=8.1
Pod documented
33 322 my ($class, $str) = @_;
34 322 ▶ return bless \$str => ref($class) || $class;
Condition33%1/3
ref $class || $class
l!l&&r!l&&!r
03220
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table33%1/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
35 }
36  
37 6 ▶sub content {
Subroutine content: called CC=1 SCAR=0.0
Pod documented
38 6 my ($self) = @_;
39 6 return $$self;
40 }
41  
42 =head1 COPYRIGHT
43  
44 Copyright (C) 2011 Dmitry E. Oboukhov <unera@debian.org>
45 Copyright (C) 2011 Roman V. Nikolaev <rshadow@rambler.ru>
46  
47 This program is free software, you can redistribute it and/or
48 modify it under the terms of the Artistic License.
49  
50 =cut
51  
52 3 1;
« DR/PerlishTemplate.pm ↑ Summary