Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

devel::cover::test(3) [centos man page]

Devel::Cover::Test(3)					User Contributed Perl Documentation				     Devel::Cover::Test(3)

NAME
Devel::Cover::Test - Internal module for testing VERSION
version 1.03 METHODS
new my $test = Devel::Cover::Test->new($test, criteria => $string) Constructor. "criteria" parameter (optional, defaults to "statement branch condition subroutine") is a space separated list of tokens. Supported tokens are "statement", "branch", "condition", "subroutine" and "pod". More optional parameters are supported. Refer to "get_params" sub. shell_quote my $quoted_item = shell_quote($item) Returns properly quoted item to cope with embedded spaces. perl my $perl = $self->perl() Returns absolute path to Perl interpreter with proper -I options (blib-wise). test_command my $command = $self->test_command() Returns test command, made of: absolute path to Perl interpreter Devel::Cover -M option (if applicable) test file test file parameters (if applicable) cover_command my $command = $self->cover_command() Returns test command, made of: absolute path to Perl interpreter absolute path to cover script cover parameters test_file my $file = $self->test_file() Returns absolute path to test file. test_file_parameters my $parameters = $self->test_file_parameters() Accessor to test_file_parameters property. cover_gold my ($base, $v) = $self->cover_gold; Returns the absolute path of the base to the golden file and the suffix version number. $base comes from the name of the test and $v will be $] from the earliest perl version for which the golden results should be the same as for the current $] run_command $self->run_command($command) Runs command, most likely obtained from "test_command" sub. BUGS
Huh? LICENCE
Copyright 2001-2013, Paul Johnson (paul@pjcj.net) This software is free. It is licensed under the same terms as Perl itself. The latest version of this software should be available from my homepage: http://www.pjcj.net perl v5.16.3 2013-05-20 Devel::Cover::Test(3)

Check Out this Related Man Page

Devel::Cover::Truth_Table(3pm)				User Contributed Perl Documentation			    Devel::Cover::Truth_Table(3pm)

NAME
Devel::Cover::Truth_Table - Create and manipulate truth tables for coverage objects. VERSION
version 0.89 SYNOPSIS
use Devel::Cover::Truth_Table; # $a || $b my $or_tt = Devel::Cover::Truth_Table->new_primitive('or_3', 0, 1, 1); # $c && $d my $and_tt = Devel::Cover::Truth_Table->new_primitive('and_3', 1, 0, 1); # merge contents of $and_tt into right column of $or_tt, to create # $a || ($c && $d) $or_tt->right_merge($and_tt); # get a (sorted) textual representation my @text = $or_tt->sort->text; print "$_ " foreach @text; __END__ A B C |exp|hit -------------- 0 0 X | 0 |--- 0 1 0 | 0 |--- 0 1 1 | 1 |+++ 1 X X | 1 |+++ -------------- DESCRIPTION
This module provides methods for creating and merging conditional primitives ("$a && $b", "$c || $d", etc.) into more complex composite expressions. METHODS
new_primitive($op, @coverage) Create a new truth table based on one of the built-in primitives, which are the subclasses of Devel::Cover::DB::Condition. $op is one of the following: and_3 "and" or "&&" with three conditional paths. or_3 "or" or "||" with three conditional paths. or_2 "or" or "||" with two conditional paths. (i.e., when the right hand side of the expression is a constant) xor_4 "xor" with four conditional paths. @coverage is a list booleans identifying which of the possible paths have been covered. sort() Sorts a truth table (in place) and returns the sorted object. text() Format a truth table to an array of strings for printing. html() Format a truth table in HTML. error() percentage() Determines the proportion of possible conditions that have coverage. right_merge($sub_table) Merge entries from $sub_table into right column of table. left_merge($sub_table) Merge entries from $sub_table into left column of table. SEE ALSO
Devel::Cover BUGS
None that I'm aware of... LICENSE
Copyright 2002 Michael Carman <mjcarman@mchsi.com> This software is free. It is licensed under the same terms as Perl itself. The latest version should be available from: http://www.pjcj.net perl v5.14.2 2012-06-16 Devel::Cover::Truth_Table(3pm)
Man Page