MacAddress/Formatter/Dots.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
format
1.0
CRAP 1.0
« MacAddress/Formatter/Dashes.pm ↑ Summary
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 # ABSTRACT: formatting MAC addresses in Cisco notation
5  
6 package NetObj::MacAddress::Formatter::Dots;
7 1 $NetObj::MacAddress::Formatter::Dots::VERSION = '1.0.2';
8 3 ▶sub format {
Subroutine format: called CC=1 SCAR=0.0
Pod documented
9 3 my ($mac) = @_;
10 3 return join('.', unpack('H4' x 3, $_[0]->binary()));
11 }
12  
13 1 1;
14  
15 __END__
« MacAddress/Formatter/Dashes.pm ↑ Summary