use reusable I/O utils and better error handling
[scpubgit/System-Introspector.git] / t / hosts.t
CommitLineData
6bc93875 1use strictures 1;
2use Test::More;
3use FindBin;
4
5use System::Introspector::Hosts;
6
7my $probe = System::Introspector::Hosts->new(
8 hosts_file => "$FindBin::Bin/data/hosts",
9);
10my $data = $probe->gather;
11
12is_deeply $data,
13 [['1.2.3.4', qw( foo bar )], ['2.3.4.5', 'bar']],
14 'parsing worked';
15
16done_testing;