DOKK / manpages / debian 12 / libdata-tablereader-perl / Data::TableReader::Decoder::Mock.3pm.en
Data::TableReader::Decoder::Mock(3pm) User Contributed Perl Documentation Data::TableReader::Decoder::Mock(3pm)

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

version 0.011

    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.

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

The verbatim data which will be returned by the iterator.

Michael Conrad <mike@nrdvana.net>

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.

2022-06-30 perl v5.34.0