ETL::Pipeline::Input::UnitTest - Input source for unit tests
use ETL::Pipeline; ETL::Pipeline->new( { input => ['UnitTest'], mapping => {First => 'Header1', Second => 'Header2'}, output => ['UnitTest'] } )->process;
ETL::Pipeline::Input::UnitTest is an input source used by the unit tests. It proves that the ETL::Pipeline::Input role works.
The data is hard coded.
None - there's no configuration for this source. It's meant to be quick and light for unit testing.
This is the main loop. For unit tests, I use hard coded data. This guarantees consistent behavior.
ETL::Pipeline automatically calls this method.
ETL::Pipeline, ETL::Pipeline::Input, ETL::Pipeline::Output::UnitTest
Robert Wohlfarth <robert.j.wohlfarth@vumc.org>
Copyright 2021 (c) Vanderbilt University
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install ETL::Pipeline, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ETL::Pipeline
CPAN shell
perl -MCPAN -e shell install ETL::Pipeline
For more information on module installation, please visit the detailed CPAN module installation guide.