NAME
ABNF::Generator::Liar - class to generate invalid messages for ABNF-based generators
INHERITANCE
ABNF::Generator::Liar isa BNF::Generator
DESCRIPTION
METHODS
ABNF::Generator::Liar->new
($grammar, $validator?)
Creates a new ABNF::Generator::Liar object.
$grammar isa ABNF::Grammar.
$validator isa ABNF::Validator.
$liar->generate
($rule, $tail="")
Generates one invalid sequence string for command $rule.
Using cache $self->{_cache}->{$rule} for this rule, that speeds up this call.
$rule is a command name.
$tail is a string added to result if it absent.
dies if there is no command like $rule.
$liar->withoutArguments
($name, $tail="")
Return a string starts like command $name and without arguments if it possible.
Return an empty string if command may have no arguments.
$tail is a string added to result if it absent.
dies if there is no command like $rule.
$liar->unExistedCommand
()
Return an string starts with char sequence that doesn't match any command
$tail is a string added to result if it absent.
dies if there is no command like $rule.
$liar->endlessCommand
($name)
Return an string starts like command $name and length more then $ENDLESS = 513 * 1024 / 4
$tail is a string added to result if it absent.
dies if there is no command like $rule.
FUNCTIONS
Liar
()
Return __PACKAGE__ to reduce class name :3
AUTHOR / COPYRIGHT / LICENSE
Copyright (c) 2013 Arseny Krasikov <nyaapa@cpan.org>.
This module is licensed under the same terms as Perl itself.