Scroll to navigation

Data::TableReader::Decoder::Mock(3pm) User Contributed Perl Documentation Data::TableReader::Decoder::Mock(3pm)

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.

2020-08-20 perl v5.30.3