The Perl Advent Calendar needs more articles for 2022. Submit your idea today!

NAME

Data::TableReader::Decoder::Mock - Mock decoder for test cases

VERSION

version 0.011

SYNOPSIS

    decoder => {
      CLASS => 'Mock',
      data => [
        [ # Data Set 0
           [ 1, 2, 3, 4, 5 ],
           ...
        ],
        [ # Data Set 1
           [ 1, 2, 3, 4, 5 ],
           ...
        ],
      ]
    }

This doesn't actually decode anything; it just returns verbatim rows of data from arrayrefs that you supply.

ATTRIBUTES

See attributes from parent class: Data::TableReader::Decoder.

data

The verbatim data which will be returned by the iterator.

AUTHOR

Michael Conrad <mike@nrdvana.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Michael Conrad.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.