App::Dochazka::CLI::Test - Reusable test routines
A piece of testing code we run for entries in CommandMap.pm
Takes the "normalized command", i.e. the nc property returned by parse(); especially do not send it the raw command entered by the user!
nc
parse()
For usage, see t/parser/parse_test.t
t/parser/parse_test.t
Takes a "command component" and a search string to look for. The command component is inserted into
INTERVAL FETCH $cmd_component
and the search string is looked for in the response.
Returns the response (payload) string for (optional) further testing.
To install App::Dochazka::CLI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Dochazka::CLI
CPAN shell
perl -MCPAN -e shell install App::Dochazka::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.