/home/.cpan/build/Text-Template-1.61-0/t
NameSizeModeActions
author-pod-syntax.t3000644editdlrm
author-signature.t4310644editdlrm
basic.t53140755editdlrm
broken.t16110755editdlrm
delimiters.t28030755editdlrm
error.t8080755editdlrm
exported.t18610755editdlrm
hash.t26820755editdlrm
inline-comment.t3220755editdlrm
nested-tags.t5660755editdlrm
ofh.t6650755editdlrm
out.t10860755editdlrm
prepend.t19270755editdlrm
preprocess.t12850755editdlrm
rt29928.t5530755editdlrm
safe.t38320755editdlrm
safe2.t25680755editdlrm
safe3.t19350755editdlrm
strict.t12640755editdlrm
taint.t34310750editdlrm
template-encoding.t9440755editdlrm
warnings.t12820755editdlrm
Edit: /home/.cpan/build/Text-Template-1.61-0/t/ofh.t (665B)
#!perl # # test apparatus for Text::Template module # still incomplete. use strict; use warnings; use Test::More tests => 3; use File::Temp; use_ok 'Text::Template' or exit 1; my $template = Text::Template->new( TYPE => 'STRING', SOURCE => q{My process ID is {$$}}); my $of = File::Temp->new; my $text = $template->fill_in(OUTPUT => $of); # (1) No $text should have been constructed. Return value should be true. is $text, '1'; close $of or die "close(): $!"; open my $ifh, '<', $of->filename or die "open($of): $!"; my $t; { local $/; $t = <$ifh> } close $ifh; # (2) The text should have been printed to the file is $t, "My process ID is $$";