NAME

Top Close Open

Template::Test::Parser - additional functions for testing the parser

SYNOPSIS

Top Close Open
use Template::Test::Parser qw( :all );

DESCRIPTION

Top Close Open

This is a aubclass of Template::TT3::Test with some extra methods for testing the Template::TT3::Parser module.

TODO: this documentation needs writing.

SUBROUTINES

Top Close Open

test_parser()

Top Close Open

NOTE: these docs are cut-n-pasted from a previous version and are out of date.

Method to test the parser by feeding each test in the __DATA__ section into the parse_expression() method (or a method defined in a 'parse_method' option or set in a test in a -- parse_method_name -- flag) called against a parser object passed in the 'parser' option or defaulting to a Template::Parser object. Then feeds the output into a generator (the 'generator' option) which defaults to Template::Generator::Debug, and can also be controlled by a test flag such as -- generate_perl -- to invoke the 'perl' generator in the generators test set, passed as the 'generators' option or defaulting to the set returned by test_generators().

TODO: wrapper around test_expect() for testing the parser.

AUTHOR

Top Close Open

Andy Wardley <abw@wardley.org>

COPYRIGHT

Top Close Open

Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.

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


http://tt3.template-toolkit.org/docs/Template/TT3/Test/Parser.pm last modified 2009-11-21 20:12:23