File: get_mac.t

package info (click to toggle)
libnet-arp-perl 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 180 kB
  • ctags: 181
  • sloc: ansic: 297; perl: 41; makefile: 26
file content (12 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#
# Test get_mac function
#
# Programmed by Bastian Ballmann
# Last update: 31.01.2007

use Net::ARP;
use Test::More qw( no_plan );

$mac = Net::ARP::get_mac("strange_dev_value");
ok( $mac eq "unknown", "unkown mac on strange dev value -> $mac" );