6 use Test
::More tests
=> 1;
8 use DataExtract
::FixedWidth
;
10 my $file = File
::Spec
->catfile( 't', 'data', 'ps-lA.txt' );
11 open ( my $fh, $file ) || die "Can not open $file";
15 my $fw = DataExtract
::FixedWidth
->new({heuristic
=> \
@lines});
17 my @rows = map $fw->parse_hash($_), @lines;
61 'CMD' => 'migration/0',
76 'CMD' => 'ksoftirqd/0',
91 'CMD' => 'watchdog/0',
100 'TIME' => '00:00:00',
106 'CMD' => 'migration/1',
115 'TIME' => '00:00:00',
121 'CMD' => 'ksoftirqd/1',
130 'TIME' => '00:00:00',
136 'CMD' => 'watchdog/1',
145 'TIME' => '00:00:00',
158 is_deeply
( $stored_arr, \
@rows, 'deep store of ps -lA' )