Dump/Text.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 4 / 4 totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
new
1.0
CRAP 1.0
« Dump/Property.pm ↑ Summary
1 package SVN::Dump::Text;
2 16 $SVN::Dump::Text::VERSION = '0.07';
3 16 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 16 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 16 my $NL = "\012";
7  
8 # blessed string reference
9 sub new {
10 100 ▶ my ( $class, @args ) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod documented
11 100 return bless \( join '', @args ), $class;
12 }
13  
14 sub set {
15 27 ▶ my ( $self, $text ) = @_;
Subroutine set: called CC=1 SCAR=0.0
Pod documented
16 27 $$self = $text;
17 }
18 181 ▶sub get { ${ $_[0] } }
Subroutine get: called CC=1 SCAR=0.0
Pod documented
19 16 *as_string = \&get;
20  
21 sub digest {
22 7 ▶ my ( $self, $algo ) = @_;
Subroutine digest: called CC=1 SCAR=0.0
Pod documented
23 7 return eval {
24 7 require Digest;
25 7 Digest->new( uc $algo )->add($$self)->hexdigest;
26 };
27 }
28  
29 16 1;
30  
31 __END__
« Dump/Property.pm ↑ Summary