/[pxelator]/lib/PXElator/t/log.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /lib/PXElator/t/log.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 72 - (show annotations)
Thu Jul 30 23:57:19 2009 UTC (14 years, 8 months ago) by dpavlin
File MIME type: application/x-troff
File size: 319 byte(s)
record and display log changes by mac addresses

1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5 use autodie;
6
7 use Test::More tests => 6;
8 use Data::Dump qw/dump/;
9
10 use_ok 'log';
11
12 ok( my $dir = $log::dir, 'dir' );
13 diag $dir;
14
15 ok( log::mac( 'test', 'message ' . $_ ), 'mac' ) foreach ( 1 .. 3 );
16
17 ok( my @changes = log::mac_changes( 'test' ), 'mac' );
18 diag dump( @changes );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26