HTML::...r::Test(3pm)
okay so this is the HTML::...r::Test(3pm) page from User Contributed Perl Documentation β the module is HTML::FormHandler::Test, and it's here to make is_html testing not give you a headache. π
β¨
π NAME π
HTML::FormHandler::Test β provides is_html method used in tests. That's the whole name energy, bestie. π«Ά
β VERSION β
version 0.40068 β noted, locked in, no cap. π₯
β¨ SYNOPSIS β¨
The is_html method is simple and lowkey perfect for testing form rendering against an expected value, without having to fuss with exactly matching newlines and spaces. It uses HTML::TreeBuilder, which uses HTML::Parser. See numerous examples in the t/render directory. π¦
Here's the synopsis code, exactly as the page has it:
use Test::More;
use HTML::FormHandler::Test;
use_ok('MyApp::Form::Basic');
my $form = MyApp::Form::Basic->new;
$form->process;
my $expected = '<form html>';
is_html( $form->render, $expected, 'form renders ok' );
π AUTHOR π
FormHandler Contributors - see HTML::FormHandler β periodt. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017 by Gerda Shank. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
That's the legal tea, served exactly. πΈ
okay bye bestie! π Cute sign-off: this page is HTML::...r::Test(3pm), running under perl v5.34.0, dated 2022-03-25. Stay slay, test your renders, and may your newlines never be fussy. πβ¨
π¦ where this page comes from
- debian bookworm: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms