URI/urn/oid.pm

filter: Statementstmt 100% 17 / 17 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 92.3% 24 / 26 CC 3 SCAR 7.0
CC
3
Cov
95%
oid
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« URI/sip.pm ↑ Summary URI/sips.pm »
1 package URI::urn::oid; # RFC 2061
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '5.40';
7  
8 1 ▶use parent 'URI::urn';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 ▶sub oid {
Subroutine oid: called CC=3 SCAR=11.0
Pod undocumented
11 3 my $self = shift;
12 3 my $old = $self->nss;
13 3 ▶ if (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 1 2 3
14 1 $self->nss(join(".", @_));
15 }
16 3 ▶ return split(/\./, $old) if wantarray;
Branch: 1 branch
BranchTrueFalseTotal
if wantarray 0 3 3
17 3 return $old;
18 }
19  
20 1 1;
« URI/sip.pm ↑ Summary URI/sips.pm »