NAME

App::Dochazka::CLI::Test - Reusable test routines

PACKAGE VARIABLES AND EXPORTS

FUNCTIONS

init_unit

delete_interval

do_parse_test

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!

For usage, see t/parser/parse_test.t

fetch_interval_test

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.