Fennec::Meta - The meta-object added to all Fennec test classes.


Fennec documentation Contained in the Fennec distribution.

Index


Code Index:

NAME

Top

Fennec::Meta - The meta-object added to all Fennec test classes.

DESCRIPTION

Top

When you use Fennec; a function is added to you class named 'FENNEC' that returns the single Fennec meta-object that tracks information about your class.

ATTRIBUTES

Top

parallel

Maximum number of parallel tests that can be run for your class.

class

Name of your class.

fennec

Name of the class that was used to load fennec (usually 'Fennec')

base

Base class Fennec put in place, if any.

test_sort

What method of test sorting was specified, if any.

with_tests

List of test templates loaded into your class.

API STABILITY

Top

Fennec versions below 1.000 were considered experimental, and the API was subject to change. As of version 1.0 the API is considered stabalized. New versions may add functionality, but not remove or significantly alter existing functionality.

AUTHORS

Top

Chad Granum exodist7@gmail.com

COPYRIGHT

Top


Fennec documentation Contained in the Fennec distribution.

package Fennec::Meta;
use strict;
use warnings;

use Fennec::Util qw/accessors/;

accessors qw/parallel class fennec base test_sort with_tests/;

sub new {
    my $class = shift;
    my %proto = @_;
    bless({
        $proto{fennec}->defaults(),
        %proto,
    }, $class);
}

1;

__END__