NAME
Fennec::TestFile::Meta - Meta information for Fennec::TestFile objects
DESCRIPTION
This class stores meta information for Fennec::TestFile objects. Fennec needs various meta information when working with test files. Instead of adding methods to TestFile that might interfer with a subclass, Fennec associates a Meta object with a TestFile class.
CLASS METHODS
- $class->set( $test_file_class, $metaobj )
-
Associate a meta object with a test file class.
- $metaobj = $class->get( $TestFileClass )
-
Get the meta object associated with a test file class.
- my $metaobj = $class->new( %proto )
-
Create a new instance of a meta object.
my $meta = $class->new( todo => $todo || undef, skip => $skip || undef, file => $testfile_obj, sort => $s_bool, random => $r_bool, workflow => $root_workflow, );
OBJECT METHODS
- $random = $obj->random()
-
True if the testsets should be randomized
- $filename = $obj->name()
-
Return the filename that defined the TestFile class.
- $workflow = $obj->workflow()
-
Get the workflow at the top of the stack
- $workflow = $obj->root_workflow()
-
Get the root workflow for the TestFile
- $threader = $obj->threader()
-
Get the threader used by the runner to run tests in parallel.
- $reason = $obj->todo()
-
Reason why the testfile should is todo (if it is)
- $reason = $obj->skip()
-
Reason why the testfile should be skipped (if it should)
- $testfile_obj = $obj->file()
-
Get the TestFile object.
- $sort = $obj->sort()
-
True if the tests should be sorted instead of randomized.
AUTHORS
Chad Granum exodist7@gmail.com
COPYRIGHT
Copyright (C) 2010 Chad Granum
Fennec is free software; Standard perl licence.
Fennec is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.