Server IP : 103.119.228.120 / Your IP : 18.217.208.220 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/local/ssl/local/ssl/local/ssl/local/share/man/man3/ |
Upload File : |
.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Test2::Event 3" .TH Test2::Event 3 "2016-10-20" "perl v5.16.3" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Test2::Event \- Base class for events .SH "DESCRIPTION" .IX Header "DESCRIPTION" Base class for all event objects that get passed through Test2. .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 3 \& package Test2::Event::MyEvent; \& use strict; \& use warnings; \& \& # This will make our class an event subclass (required) \& use base \*(AqTest2::Event\*(Aq; \& \& # Add some accessors (optional) \& # You are not obligated to use HashBase, you can use any object tool you \& # want, or roll your own accessors. \& use Test2::Util::HashBase qw/foo bar baz/; \& \& # Chance to initialize some defaults \& sub init { \& my $self = shift; \& # no other args in @_ \& \& $self\->set_foo(\*(Aqxxx\*(Aq) unless defined $self\->foo; \& \& ... \& } \& \& 1; .Ve .SH "METHODS" .IX Header "METHODS" .ie n .IP "$trace = $e\->trace" 4 .el .IP "\f(CW$trace\fR = \f(CW$e\fR\->trace" 4 .IX Item "$trace = $e->trace" Get a snapshot of the Test2::Util::Trace as it was when this event was generated .ie n .IP "$bool = $e\->causes_fail" 4 .el .IP "\f(CW$bool\fR = \f(CW$e\fR\->causes_fail" 4 .IX Item "$bool = $e->causes_fail" Returns true if this event should result in a test failure. In general this should be false. .ie n .IP "$bool = $e\->increments_count" 4 .el .IP "\f(CW$bool\fR = \f(CW$e\fR\->increments_count" 4 .IX Item "$bool = $e->increments_count" Should be true if this event should result in a test count increment. .ie n .IP "$e\->callback($hub)" 4 .el .IP "\f(CW$e\fR\->callback($hub)" 4 .IX Item "$e->callback($hub)" If your event needs to have extra effects on the Test2::Hub you can override this method. .Sp This is called \fB\s-1BEFORE\s0\fR your event is passed to the formatter. .ie n .IP "$call = $e\->created" 4 .el .IP "\f(CW$call\fR = \f(CW$e\fR\->created" 4 .IX Item "$call = $e->created" Get the \f(CW\*(C`caller()\*(C'\fR details from when the event was generated. This is usually inside a tools package. This is typically used for debugging. .ie n .IP "$num = $e\->nested" 4 .el .IP "\f(CW$num\fR = \f(CW$e\fR\->nested" 4 .IX Item "$num = $e->nested" If this event is nested inside of other events, this should be the depth of nesting. (This is mainly for subtests) .ie n .IP "$bool = $e\->global" 4 .el .IP "\f(CW$bool\fR = \f(CW$e\fR\->global" 4 .IX Item "$bool = $e->global" Set this to true if your event is global, that is \s-1ALL\s0 threads and processes should see it no matter when or where it is generated. This is not a common thing to want, it is used by bail-out and skip_all to end testing. .ie n .IP "$code = $e\->terminate" 4 .el .IP "\f(CW$code\fR = \f(CW$e\fR\->terminate" 4 .IX Item "$code = $e->terminate" This is called \fB\s-1AFTER\s0\fR your event has been passed to the formatter. This should normally return undef, only change this if your event should cause the test to exit immediately. .Sp If you want this event to cause the test to exit you should return the exit code here. Exit code of 0 means exit success, any other integer means exit with failure. .Sp This is used by Test2::Event::Plan to exit 0 when the plan is \&'skip_all'. This is also used by Test2::Event:Bail to force the test to exit with a failure. .Sp This is called after the event has been sent to the formatter in order to ensure the event is seen and understood. .ie n .IP "$todo = $e\->todo" 4 .el .IP "\f(CW$todo\fR = \f(CW$e\fR\->todo" 4 .IX Item "$todo = $e->todo" .PD 0 .ie n .IP "$e\->set_todo($todo)" 4 .el .IP "\f(CW$e\fR\->set_todo($todo)" 4 .IX Item "$e->set_todo($todo)" .PD Get/Set the todo reason on the event. Any value other than \f(CW\*(C`undef\*(C'\fR makes the event '\s-1TODO\s0'. .Sp Not all events make use of this field, but they can all have it set/cleared. .ie n .IP "$bool = $e\->diag_todo" 4 .el .IP "\f(CW$bool\fR = \f(CW$e\fR\->diag_todo" 4 .IX Item "$bool = $e->diag_todo" .PD 0 .ie n .IP "$e\->diag_todo($todo)" 4 .el .IP "\f(CW$e\fR\->diag_todo($todo)" 4 .IX Item "$e->diag_todo($todo)" .PD True if this event should be considered '\s-1TODO\s0' for diagnostics purposes. This essentially means that any message that would go to \s-1STDERR\s0 will go to \s-1STDOUT\s0 instead so that a harness will hide it outside of verbose mode. .ie n .IP "$msg = $e\->summary" 4 .el .IP "\f(CW$msg\fR = \f(CW$e\fR\->summary" 4 .IX Item "$msg = $e->summary" This is intended to be a human readable summary of the event. This should ideally only be one line long, but you can use multiple lines if necessary. This is intended for human consumption. You do not need to make it easy for machines to understand. .Sp The default is to simply return the event package name. .ie n .IP "($count, $directive, $reason) = $e\->\fIsets_plan()\fR" 4 .el .IP "($count, \f(CW$directive\fR, \f(CW$reason\fR) = \f(CW$e\fR\->\fIsets_plan()\fR" 4 .IX Item "($count, $directive, $reason) = $e->sets_plan()" Check if this event sets the testing plan. It will return an empty list if it does not. If it does set the plan it will return a list of 1 to 3 items in order: Expected Test Count, Test Directive, Reason for directive. .ie n .IP "$bool = $e\->diagnostics" 4 .el .IP "\f(CW$bool\fR = \f(CW$e\fR\->diagnostics" 4 .IX Item "$bool = $e->diagnostics" True if the event contains diagnostics info. This is useful because a non-verbose harness may choose to hide events that are not in this category. Some formatters may choose to send these to \s-1STDERR\s0 instead of \s-1STDOUT\s0 to ensure they are seen. .ie n .IP "$bool = $e\->no_display" 4 .el .IP "\f(CW$bool\fR = \f(CW$e\fR\->no_display" 4 .IX Item "$bool = $e->no_display" False by default. This will return true on events that should not be displayed by formatters. .ie n .IP "$id = $e\->in_subtest" 4 .el .IP "\f(CW$id\fR = \f(CW$e\fR\->in_subtest" 4 .IX Item "$id = $e->in_subtest" If the event is inside a subtest this should have the subtest \s-1ID.\s0 .ie n .IP "$id = $e\->subtest_id" 4 .el .IP "\f(CW$id\fR = \f(CW$e\fR\->subtest_id" 4 .IX Item "$id = $e->subtest_id" If the event is a final subtest event, this should contain the subtest \s-1ID.\s0 .SH "THIRD PARTY META-DATA" .IX Header "THIRD PARTY META-DATA" This object consumes Test2::Util::ExternalMeta which provides a consistent way for you to attach meta-data to instances of this class. This is useful for tools, plugins, and other extensions. .SH "SOURCE" .IX Header "SOURCE" The source code repository for Test2 can be found at \&\fIhttp://github.com/Test\-More/test\-more/\fR. .SH "MAINTAINERS" .IX Header "MAINTAINERS" .IP "Chad Granum <exodist@cpan.org>" 4 .IX Item "Chad Granum <exodist@cpan.org>" .SH "AUTHORS" .IX Header "AUTHORS" .PD 0 .IP "Chad Granum <exodist@cpan.org>" 4 .IX Item "Chad Granum <exodist@cpan.org>" .PD .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright 2016 Chad Granum <exodist@cpan.org>. .PP This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. .PP See \fIhttp://dev.perl.org/licenses/\fR