LRpt::CSVEADiff - A module for comparing a set of csv files with expectations
lcsveadiff.pl --keys_file=keys.txt --cmp_rules=cmp_rules.xml --log_file=logfile.txt --expectations=exp.xml actual_dir
This module is a part of LRpt (LReport) library. It is used to compare set of csv files with expectations and report found differences. You should not use LRpt::CSVEADiff module directly in your code. Instead you should use lcsveadiff.pl tool, which is a simple wrapper around the module. lcsveadiff.pl looks like this:
LRpt
LRpt::CSVEADiff
use strict; use LRpt::CSVEADiff; ea_diff( @ARGV );
Row key defined in command line as one string. Don't use it. I will probably get read of this switch in future
Name of the file containing row keys definitions
Name of a file containing comparing rules.
Name of a file to which log messages should be written
Name of a file containing expectations
Prints help screen.
A file name or a directory containing actual state.
In this sections you will find a more or less complete listing of all methods provided by the package.
ea_diff
ea_diff( @ARGV );
Main function. @ARGV is processes by standard Getopt::Long module. Meaning of each switch is given in SYNOPSIS.
load_expectations
load_expectations( $exp_file );
Loads expecations from the file $exp_file.
$exp_file
load_csvs
load_csvs();
Loads all csvs, which names are given in a command line
load_csv_file
load_csv_file();
Loads one csv file.
compare
compare( $cmp_rules_file, $log_file );
Compare loaded data with expectations.
print_usage
print_usage();
Prints usage text.
The project is maintained on Source Forge http://lreport.sourceforge.net. You can find there links to some helpful documentation like tutorial.
Piotr Kaluski <pkaluski@piotrkaluski.com>
Copyright (c) 2004-2006 Piotr Kaluski. Poland. All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
To install LRpt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LRpt
CPAN shell
perl -MCPAN -e shell install LRpt
For more information on module installation, please visit the detailed CPAN module installation guide.