GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEST::STREAM::STATE (3)

.ds Aq ’

NAME

Test::Stream::State - Representation of the state of the testing

CONTENTS

DEPRECATED

<B>This distribution is deprecatedB> in favor of Test2, Test2::Suite, and Test2::Workflow.

See Test::Stream::Manual::ToTest2 for a conversion guide.

METHODS

$num = $state->count Get the number of tests that have been run.
$num = $state->failed Get the number of failures (Not all failures come from a test fail, so this number can be larger than the count).
$bool = $state->ended True if the state has ended. This MAY return the stack frame of the tool that ended the test, but that is not guarenteed.
$bool = $state->is_passing
$state->is_passing($bool) Check if the overall state is a failure. Can also be used to set the pass/fail status.
$state->bump($bool) Increase the test count by one, $bool should be true if the new test passed, false if it failed.
$state->bump_fail Increase the failure count, and set is_passing to false.
$state->plan($plan)
$plan = $state->plan Get or set the plan. The plan must be an integer larger than 0, the string ’no_plan’, or the string ’skip_all’.
$state->finish([$package, $file, $line]) This is used to finalize the state, no changes should be made to the state after this is set.

SOURCE

The source code repository for Test::Stream can be found at http://github.com/Test-More/Test-Stream/.

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>
Kent Fredric <kentnl@cpan.org>

COPYRIGHT

Copyright 2015 Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEST::STREAM::STATE (3) 2016-02-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.