Text::TestBase - Parser for Test::Base format
use Text::TestBase;
my $parser = Text::TestBase->new();
$parser->parse(<<'...');
=== hogehoge
--- input: yyy
--- got: xxx
...
Text::TestBase is a parser for Test::Base format.
I love Test::Base. But it's bit too magical. It uses Spiffy, and it depends to YAML. Test::Base breaks my distribution sometime. I need more simple implementation for Test::Base format.
-
my $parser = Text::TestBase->new();
Create new parser instance.
-
$parser->parse($src: Str): List of Text::TestBase::Block
Parse $src and get a list of Text::TestBase::Block
Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>
Most of the code was taken from Test::Base, of course.
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.