HTML::...r::Test(3pm)

πŸ“¦
version 0.40068 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute

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. πŸ‘‘

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