++ed by:
VOJ

1 PAUSE user(s)
3 non-PAUSE user(s).

Nicolas Steenlant

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, fix => [...])

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

The constructor inherits the fix parameter from Catmandu::Fixable. When given, then each fix or fix script will be applied to imported items.

count

each(&callback)

...

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

SEE ALSO

Catmandu::Iterable




Hosting generously
sponsored by Bytemark