The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ETL::Pipeline::Input::UnitTest - Input source for unit tests

SYNOPSIS

  use ETL::Pipeline;
  ETL::Pipeline->new( {
    input   => ['UnitTest'],
    mapping => {First => 'Header1', Second => 'Header2'},
    output  => ['UnitTest']
  } )->process;

DESCRIPTION

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.

METHODS & ATTRIBUTES

Arguments for "input" in ETL::Pipeline

None - there's no configuration for this source. It's meant to be quick and light for unit testing.

Methods

run

This is the main loop. For unit tests, I use hard coded data. This guarantees consistent behavior.

ETL::Pipeline automatically calls this method.

SEE ALSO

ETL::Pipeline, ETL::Pipeline::Input, ETL::Pipeline::Output::UnitTest

AUTHOR

Robert Wohlfarth <robert.j.wohlfarth@vumc.org>

LICENSE

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.