TAP::Parser::Result::Plan(3pm) Perl Programmers Reference Guide TAP::Parser::Result::Plan(3pm)NAME
TAP::Parser::Result::Plan - Plan result token.
VERSION
Version 3.26
DESCRIPTION
This is a subclass of TAP::Parser::Result. A token of this class will be returned if a plan line is encountered.
1..1
ok 1 - woo hooo!
1..1 is the plan. Gotta have a plan.
OVERRIDDEN METHODS
Mainly listed here to shut up the pitiful screams of the pod coverage tests. They keep me awake at night.
o "as_string"
o "raw"
Instance Methods
"plan"
if ( $result->is_plan ) {
print $result->plan;
}
This is merely a synonym for "as_string".
"tests_planned"
my $planned = $result->tests_planned;
Returns the number of tests planned. For example, a plan of 1..17 will cause this method to return '17'.
"directive"
my $directive = $plan->directive;
If a SKIP directive is included with the plan, this method will return it.
1..0 # SKIP: why bother?
"has_skip"
if ( $result->has_skip ) { ... }
Returns a boolean value indicating whether or not this test has a SKIP directive.
"explanation"
my $explanation = $plan->explanation;
If a SKIP directive was included with the plan, this method will return the explanation, if any.
"todo_list"
my $todo = $result->todo_list;
for ( @$todo ) {
...
}
perl v5.18.2 2014-01-06 TAP::Parser::Result::Plan(3pm)
Check Out this Related Man Page
TAP::Parser::Result::Plan(3pm) Perl Programmers Reference Guide TAP::Parser::Result::Plan(3pm)NAME
TAP::Parser::Result::Plan - Plan result token.
VERSION
Version 3.23
DESCRIPTION
This is a subclass of TAP::Parser::Result. A token of this class will be returned if a plan line is encountered.
1..1
ok 1 - woo hooo!
1..1 is the plan. Gotta have a plan.
OVERRIDDEN METHODS
Mainly listed here to shut up the pitiful screams of the pod coverage tests. They keep me awake at night.
o "as_string"
o "raw"
Instance Methods
"plan"
if ( $result->is_plan ) {
print $result->plan;
}
This is merely a synonym for "as_string".
"tests_planned"
my $planned = $result->tests_planned;
Returns the number of tests planned. For example, a plan of 1..17 will cause this method to return '17'.
"directive"
my $directive = $plan->directive;
If a SKIP directive is included with the plan, this method will return it.
1..0 # SKIP: why bother?
"has_skip"
if ( $result->has_skip ) { ... }
Returns a boolean value indicating whether or not this test has a SKIP directive.
"explanation"
my $explanation = $plan->explanation;
If a SKIP directive was included with the plan, this method will return the explanation, if any.
"todo_list"
my $todo = $result->todo_list;
for ( @$todo ) {
...
}
perl v5.16.2 2012-10-25 TAP::Parser::Result::Plan(3pm)
Hia all,
I am trying to create a simple script, that will keep me a todo file/log.
The idea is to have to scritps, one to enter a new todo file, one to delete (it can be one with different inputs, but this is not the point)
e.g.
> newEntry Call_home
- will add a new line to the log like... (4 Replies)
Hey, I'm fairly used to unix/linux as a whole, but new to opendarwin, just wondering, does it come with any windowmanagers beside maybe twm? I plan on getting it regardless, but knowing would always be useful. Googling hasn't provided any useful result.. can anyone answer this for me? Thanks if... (2 Replies)
I need to change the IP address on one of your Unix machines - P630, AIX5.2.
I plan on using SMIT to perform this function. These are the steps that I have put together so far:
1. Select Communications Applications & Services
- Select TCP/IP
- Select Minimun Configuration & Startup... (2 Replies)
Dear all,
Below is my script,
totalCount=57006427
totalSummCount=1207590
let percentageSumTmp1=${totalCount}-${totalSummCount}
let percentageSumTmp2=${percentageSumTmp1}*100
The expected result for percentageSumTmp2 should be (5579883700),
but when I execute the script in unix env i... (3 Replies)
I have an old Pentium box pieced together from parts, and the 2G hard drive in it is showing signs of a coming death. I have purchased an 8G HD to replace the old one, and I plan to install NetBSD 1.6.1.
The machine is to be used as a home server, with Mail handled as fetchmail -> sendmail ->... (4 Replies)
Hi All.
I'm new to Unix, decided to embrace it finally, and am so impressed.
As part of my learning plan, i've been set this question but i'm a bit stuck as to where to start!
Set a variable called $X to the contents of a directory-
and then using a "for" loop test each component to see... (6 Replies)
Hi all,
I need to check the contents of my vpath directive in my file. Is it possible to check the contents of the vpath directive as we do for a variable like @echo '$vpath' .
Please let me know the above is correct or suggest me the correct one.
Thanks in advance.
-Jerry (6 Replies)
Hi all
i'm looking for good advice regarding backup plan becuase its first time to me handle large scale database expected to grow up 10000 - 20000 record per year with daily operations on it
I'm working as sysAdmin in educational organization ( junior level ) with mixed OSes environment... (3 Replies)
Hello everyone
I need to shutdown all my servers and my storage. I would like to hear your opinions about this.
This is my little plan about all this.
1.-Stop the applications
2.-Stop the webservers
3.-Stop the ihs
4.-Stop the databases
5.-Verify no process are running
6.-Close the... (1 Reply)
I have a list like this:
todu
todo
tofe
tafo
I want to grep only the lines where the 2nd and the 4th character are the same.
In this case I would get only "todo".
Thanks. (3 Replies)
Hi everyone,
I am new to this forum and this is my very first post, one i think i will look back at many years from now and have nothing to regret about.
This is simply because i recently installed Linux (Ubuntu) on my system and downloaded a book titled, The Unix Programming Environment. I... (7 Replies)