Nicolas Steenlant > Catmandu-0.06 > Catmandu::Importer::Mock

Download:
Catmandu-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Catmandu-0.8014

NAME ^

Catmandu::Importer::Mock - Mock importer used for testing purposes

SYNOPSIS ^

    use Catmandu::Importer::Mock;

    my $importer = Catmandu::Importer::Mock->new();

    my $n = $importer->each(sub {
        my $hashref = $_[0];
        # ...
    });

METHODS ^

new(size => $n)

Create a new Mock importer. Optionally provide a size parameter.

count

each(&callback)

...

Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited.

SEE ALSO ^

Catmandu::Iterable

syntax highlighting: