GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEST::INLINE::CONTENT::SIMPLE (3)

.ds Aq ’

NAME

Test::Inline::Content::Simple - Simple templating Content Handler

CONTENTS

SYNOPSIS



  In your inline2test.tpl
  ----------------------
  #!/usr/bin/perl -w
 
  use strict;
  use Test::More [% plan %];
  $| = 1;
 
 
 
  [% tests %]
 
 
 
  1;



DESCRIPTION

It is relatively common to want to customise the contents of the generated test files to set up custom environment things on an all-scripts basis, rather than file by file (using =begin SETUP blocks).

Test::Inline::Content::Simple lets you use a very simple Template Toolkit style template to define this information.

It contains only two tags, plan and tests.

The plan tag will be inserted as either tests = 123> or no_plan.

The tests tag will be replaced by the actual testing code.

METHODS

new CW$filename

Manually create a new Test::Inline::Content::Simple object. Takes as parameter a single filename which should contain the template code.

Returns a new Test::Inline::Content::Simple object, or undef on error.

    template

The template accessor returns the template content for the object

process CW$Inline, CW$Script

The process method is unchanged from Test::Inline::Content.

SUPPORT

See the main SUPPORT section.

AUTHOR

Adam Kennedy <adamk@cpan.org>, <http://ali.as/>

COPYRIGHT

Copyright 2004 - 2013 Adam Kennedy.

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

The full text of the license can be found in the LICENSE file included with this module.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEST::INLINE::CONTENT::SIMPLE (3) 2013-04-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.