Agent::TCLI::Package::Tail::Test - A class for an individual test on Lines.
An internal object for storing Agent::TCLI::Test item information. Used to facilitate Agent::TCLI::Test::Tail.
The following attributes are accessible through standard accessor/mutator methods unless otherwise noted
The actual test subroutine to run. sub will only contain Code values.
The name of the test, as output on the TAP line. name will only contain scalar values.
The number of lines to observe before failing. Defaults to the test_max_lines value in Tail. max_lines will only contain numeric values.
The number of times the test should match before passing. Defaults to the value of test_matchtimes in Tail. match_times will only contain numeric values.
A flag to make the test output more information. This applies to the test and not to the underlying code which has its own verbose setting. test_verbose will only contain numeric values.
A value to indicate how frequently the test should report. Zero is for only when complete. One will report on every match.
feedback will only contain Numeric values.
The activation time for the test. As a time() value. birth_time will only contain numeric values.
To handle event....
Name of the SimpleLog event that is being watched. 'none' for no log. log_name will only contain scalar values.
The counter for the number of times it has matched, or passed. match_count will only contain numeric values.
A counter for the number of lines seen. line_count will only contain numeric values.
The last line number processed. last_line will only contain numeric values.
A boolean for whether the test passed or failed. success should only contain boolean values.
A boolean that indicates whether the test has completed. complete should only contain boolean values.
The relative position within the current test run of all tests. num will only contain numeric values.
Line time to live. Set as an offset to time() upon creation, so this is the actual time the test should expire. ttl will only contain numeric values.
A flag indicating if the test is ordered. ordered should only contain boolean values.
The TCLI request object that set the test, for returning results. request will only contain Request objects.
See attributes for their descriptions.
This module is an Object::InsideOut object that inherits from Agent::TCLI::Base. It inherits methods from both. Please refer to their documentation for more details.
Eric Hacker <hacker at cpan.org>
SHOULDS and MUSTS are currently not enforced.
Test scripts not thorough enough.
Probably many others.
Copyright (c) 2007, Alcatel Lucent, All rights resevred.
This package is free software; you may redistribute it and/or modify it under the same terms as Perl itself.